home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1994-08-28 | 53.1 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6f 6c 61 6e 64 40 |piled by| roland@|
|00000020| 63 68 75 72 63 68 79 2e | 67 6e 75 2e 61 69 2e 6d |churchy.|gnu.ai.m|
|00000030| 69 74 2e 65 64 75 20 6f | 6e 20 53 75 6e 20 41 75 |it.edu o|n Sun Au|
|00000040| 67 20 32 38 20 31 39 3a | 32 32 3a 30 35 20 31 39 |g 28 19:|22:05 19|
|00000050| 39 34 0a 3b 3b 3b 20 66 | 72 6f 6d 20 66 69 6c 65 |94.;;; f|rom file|
|00000060| 20 2f 67 64 2f 67 6e 75 | 2f 65 6d 61 63 73 2f 31 | /gd/gnu|/emacs/1|
|00000070| 39 2e 30 2f 6c 69 73 70 | 2f 66 69 6c 65 73 2e 65 |9.0/lisp|/files.e|
|00000080| 6c 0a 3b 3b 3b 20 65 6d | 61 63 73 20 76 65 72 73 |l.;;; em|acs vers|
|00000090| 69 6f 6e 20 31 39 2e 32 | 35 2e 39 35 2e 31 2e 0a |ion 19.2|5.95.1..|
|000000a0| 3b 3b 3b 20 62 79 74 65 | 63 6f 6d 70 20 76 65 72 |;;; byte|comp ver|
|000000b0| 73 69 6f 6e 20 46 53 46 | 20 32 2e 31 30 0a 3b 3b |sion FSF| 2.10.;;|
|000000c0| 3b 20 6f 70 74 69 6d 69 | 7a 61 74 69 6f 6e 20 69 |; optimi|zation i|
|000000d0| 73 20 6f 6e 2e 0a 3b 3b | 3b 20 74 68 69 73 20 66 |s on..;;|; this f|
|000000e0| 69 6c 65 20 75 73 65 73 | 20 6f 70 63 6f 64 65 73 |ile uses| opcodes|
|000000f0| 20 77 68 69 63 68 20 64 | 6f 20 6e 6f 74 20 65 78 | which d|o not ex|
|00000100| 69 73 74 20 69 6e 20 45 | 6d 61 63 73 20 31 38 2e |ist in E|macs 18.|
|00000110| 0a 0a 28 69 66 20 28 61 | 6e 64 20 28 62 6f 75 6e |..(if (a|nd (boun|
|00000120| 64 70 20 27 65 6d 61 63 | 73 2d 76 65 72 73 69 6f |dp 'emac|s-versio|
|00000130| 6e 29 0a 09 20 28 6f 72 | 20 28 61 6e 64 20 28 62 |n).. (or| (and (b|
|00000140| 6f 75 6e 64 70 20 27 65 | 70 6f 63 68 3a 3a 76 65 |oundp 'e|poch::ve|
|00000150| 72 73 69 6f 6e 29 20 65 | 70 6f 63 68 3a 3a 76 65 |rsion) e|poch::ve|
|00000160| 72 73 69 6f 6e 29 0a 09 | 20 20 20 20 20 28 73 74 |rsion)..| (st|
|00000170| 72 69 6e 67 2d 6c 65 73 | 73 70 20 65 6d 61 63 73 |ring-les|sp emacs|
|00000180| 2d 76 65 72 73 69 6f 6e | 20 22 31 39 22 29 29 29 |-version| "19")))|
|00000190| 0a 20 20 20 20 28 65 72 | 72 6f 72 20 22 60 2f 67 |. (er|ror "`/g|
|000001a0| 64 2f 67 6e 75 2f 65 6d | 61 63 73 2f 31 39 2e 30 |d/gnu/em|acs/19.0|
|000001b0| 2f 6c 69 73 70 2f 66 69 | 6c 65 73 2e 65 6c 27 20 |/lisp/fi|les.el' |
|000001c0| 77 61 73 20 63 6f 6d 70 | 69 6c 65 64 20 66 6f 72 |was comp|iled for|
|000001d0| 20 45 6d 61 63 73 20 31 | 39 22 29 29 0a 0a 28 64 | Emacs 1|9"))..(d|
|000001e0| 65 66 63 6f 6e 73 74 20 | 64 65 6c 65 74 65 2d 61 |efconst |delete-a|
|000001f0| 75 74 6f 2d 73 61 76 65 | 2d 66 69 6c 65 73 20 74 |uto-save|-files t|
|00000200| 20 22 5c 0a 2a 4e 6f 6e | 2d 6e 69 6c 20 6d 65 61 | "\.*Non|-nil mea|
|00000210| 6e 73 20 64 65 6c 65 74 | 65 20 61 75 74 6f 2d 73 |ns delet|e auto-s|
|00000220| 61 76 65 20 66 69 6c 65 | 20 77 68 65 6e 20 61 20 |ave file| when a |
|00000230| 62 75 66 66 65 72 20 69 | 73 20 73 61 76 65 64 20 |buffer i|s saved |
|00000240| 6f 72 20 6b 69 6c 6c 65 | 64 2e 22 29 0a 28 64 65 |or kille|d.").(de|
|00000250| 66 63 6f 6e 73 74 20 64 | 69 72 65 63 74 6f 72 79 |fconst d|irectory|
|00000260| 2d 61 62 62 72 65 76 2d | 61 6c 69 73 74 20 6e 69 |-abbrev-|alist ni|
|00000270| 6c 20 22 5c 0a 2a 41 6c | 69 73 74 20 6f 66 20 61 |l "\.*Al|ist of a|
|00000280| 62 62 72 65 76 69 61 74 | 69 6f 6e 73 20 66 6f 72 |bbreviat|ions for|
|00000290| 20 66 69 6c 65 20 64 69 | 72 65 63 74 6f 72 69 65 | file di|rectorie|
|000002a0| 73 2e 0a 41 20 6c 69 73 | 74 20 6f 66 20 65 6c 65 |s..A lis|t of ele|
|000002b0| 6d 65 6e 74 73 20 6f 66 | 20 74 68 65 20 66 6f 72 |ments of| the for|
|000002c0| 6d 20 28 46 52 4f 4d 20 | 2e 20 54 4f 29 2c 20 65 |m (FROM |. TO), e|
|000002d0| 61 63 68 20 6d 65 61 6e | 69 6e 67 20 74 6f 20 72 |ach mean|ing to r|
|000002e0| 65 70 6c 61 63 65 0a 46 | 52 4f 4d 20 77 69 74 68 |eplace.F|ROM with|
|000002f0| 20 54 4f 20 77 68 65 6e | 20 69 74 20 61 70 70 65 | TO when| it appe|
|00000300| 61 72 73 20 69 6e 20 61 | 20 64 69 72 65 63 74 6f |ars in a| directo|
|00000310| 72 79 20 6e 61 6d 65 2e | 20 20 54 68 69 73 20 72 |ry name.| This r|
|00000320| 65 70 6c 61 63 65 6d 65 | 6e 74 20 69 73 0a 64 6f |eplaceme|nt is.do|
|00000330| 6e 65 20 77 68 65 6e 20 | 73 65 74 74 69 6e 67 20 |ne when |setting |
|00000340| 75 70 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 64 |up the d|efault d|
|00000350| 69 72 65 63 74 6f 72 79 | 20 6f 66 20 61 20 6e 65 |irectory| of a ne|
|00000360| 77 6c 79 20 76 69 73 69 | 74 65 64 20 66 69 6c 65 |wly visi|ted file|
|00000370| 2e 0a 2a 45 76 65 72 79 | 2a 20 46 52 4f 4d 20 73 |..*Every|* FROM s|
|00000380| 74 72 69 6e 67 20 73 68 | 6f 75 6c 64 20 73 74 61 |tring sh|ould sta|
|00000390| 72 74 20 77 69 74 68 20 | 60 5e 27 2e 0a 0a 44 6f |rt with |`^'...Do|
|000003a0| 20 6e 6f 74 20 75 73 65 | 20 60 7e 27 20 69 6e 20 | not use| `~' in |
|000003b0| 74 68 65 20 54 4f 20 73 | 74 72 69 6e 67 73 2e 0a |the TO s|trings..|
|000003c0| 54 68 65 79 20 73 68 6f | 75 6c 64 20 62 65 20 6f |They sho|uld be o|
|000003d0| 72 64 69 6e 61 72 79 20 | 61 62 73 6f 6c 75 74 65 |rdinary |absolute|
|000003e0| 20 64 69 72 65 63 74 6f | 72 79 20 6e 61 6d 65 73 | directo|ry names|
|000003f0| 2e 0a 0a 55 73 65 20 74 | 68 69 73 20 66 65 61 74 |...Use t|his feat|
|00000400| 75 72 65 20 77 68 65 6e | 20 79 6f 75 20 68 61 76 |ure when| you hav|
|00000410| 65 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 77 68 |e direct|ories wh|
|00000420| 69 63 68 20 79 6f 75 20 | 6e 6f 72 6d 61 6c 6c 79 |ich you |normally|
|00000430| 20 72 65 66 65 72 20 74 | 6f 0a 76 69 61 20 61 62 | refer t|o.via ab|
|00000440| 73 6f 6c 75 74 65 20 73 | 79 6d 62 6f 6c 69 63 20 |solute s|ymbolic |
|00000450| 6c 69 6e 6b 73 2e 20 20 | 4d 61 6b 65 20 54 4f 20 |links. |Make TO |
|00000460| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00000470| 6c 69 6e 6b 2c 20 61 6e | 64 20 46 52 4f 4d 0a 74 |link, an|d FROM.t|
|00000480| 68 65 20 6e 61 6d 65 20 | 69 74 20 69 73 20 6c 69 |he name |it is li|
|00000490| 6e 6b 65 64 20 74 6f 2e | 22 29 0a 28 64 65 66 63 |nked to.|").(defc|
|000004a0| 6f 6e 73 74 20 6d 61 6b | 65 2d 62 61 63 6b 75 70 |onst mak|e-backup|
|000004b0| 2d 66 69 6c 65 73 20 28 | 62 79 74 65 2d 63 6f 64 |-files (|byte-cod|
|000004c0| 65 20 22 08 c1 3d 3f 87 | 22 20 5b 73 79 73 74 65 |e "..=?.|" [syste|
|000004d0| 6d 2d 74 79 70 65 20 76 | 61 78 2d 76 6d 73 5d 20 |m-type v|ax-vms] |
|000004e0| 32 29 20 22 5c 0a 2a 4e | 6f 6e 2d 6e 69 6c 20 6d |2) "\.*N|on-nil m|
|000004f0| 65 61 6e 73 20 6d 61 6b | 65 20 61 20 62 61 63 6b |eans mak|e a back|
|00000500| 75 70 20 6f 66 20 61 20 | 66 69 6c 65 20 74 68 65 |up of a |file the|
|00000510| 20 66 69 72 73 74 20 74 | 69 6d 65 20 69 74 20 69 | first t|ime it i|
|00000520| 73 20 73 61 76 65 64 2e | 0a 54 68 69 73 20 63 61 |s saved.|.This ca|
|00000530| 6e 20 62 65 20 64 6f 6e | 65 20 62 79 20 72 65 6e |n be don|e by ren|
|00000540| 61 6d 69 6e 67 20 74 68 | 65 20 66 69 6c 65 20 6f |aming th|e file o|
|00000550| 72 20 62 79 20 63 6f 70 | 79 69 6e 67 2e 0a 0a 52 |r by cop|ying...R|
|00000560| 65 6e 61 6d 69 6e 67 20 | 6d 65 61 6e 73 20 74 68 |enaming |means th|
|00000570| 61 74 20 45 6d 61 63 73 | 20 72 65 6e 61 6d 65 73 |at Emacs| renames|
|00000580| 20 74 68 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 | the exi|sting fi|
|00000590| 6c 65 20 73 6f 20 74 68 | 61 74 20 69 74 20 69 73 |le so th|at it is|
|000005a0| 20 61 0a 62 61 63 6b 75 | 70 20 66 69 6c 65 2c 20 | a.backu|p file, |
|000005b0| 74 68 65 6e 20 77 72 69 | 74 65 73 20 74 68 65 20 |then wri|tes the |
|000005c0| 62 75 66 66 65 72 20 69 | 6e 74 6f 20 61 20 6e 65 |buffer i|nto a ne|
|000005d0| 77 20 66 69 6c 65 2e 20 | 20 41 6e 79 20 6f 74 68 |w file. | Any oth|
|000005e0| 65 72 20 6e 61 6d 65 73 | 0a 74 68 61 74 20 74 68 |er names|.that th|
|000005f0| 65 20 6f 6c 64 20 66 69 | 6c 65 20 68 61 64 20 77 |e old fi|le had w|
|00000600| 69 6c 6c 20 6e 6f 77 20 | 72 65 66 65 72 20 74 6f |ill now |refer to|
|00000610| 20 74 68 65 20 62 61 63 | 6b 75 70 20 66 69 6c 65 | the bac|kup file|
|00000620| 2e 20 20 54 68 65 20 6e | 65 77 20 66 69 6c 65 0a |. The n|ew file.|
|00000630| 69 73 20 6f 77 6e 65 64 | 20 62 79 20 79 6f 75 20 |is owned| by you |
|00000640| 61 6e 64 20 69 74 73 20 | 67 72 6f 75 70 20 69 73 |and its |group is|
|00000650| 20 64 65 66 61 75 6c 74 | 65 64 2e 0a 0a 43 6f 70 | default|ed...Cop|
|00000660| 79 69 6e 67 20 6d 65 61 | 6e 73 20 74 68 61 74 20 |ying mea|ns that |
|00000670| 45 6d 61 63 73 20 63 6f | 70 69 65 73 20 74 68 65 |Emacs co|pies the|
|00000680| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 69 | existin|g file i|
|00000690| 6e 74 6f 20 74 68 65 20 | 62 61 63 6b 75 70 0a 66 |nto the |backup.f|
|000006a0| 69 6c 65 2c 20 74 68 65 | 6e 20 77 72 69 74 65 73 |ile, the|n writes|
|000006b0| 20 74 68 65 20 62 75 66 | 66 65 72 20 6f 6e 20 74 | the buf|fer on t|
|000006c0| 6f 70 20 6f 66 20 74 68 | 65 20 65 78 69 73 74 69 |op of th|e existi|
|000006d0| 6e 67 20 66 69 6c 65 2e | 20 20 41 6e 79 20 6f 74 |ng file.| Any ot|
|000006e0| 68 65 72 0a 6e 61 6d 65 | 73 20 74 68 61 74 20 74 |her.name|s that t|
|000006f0| 68 65 20 6f 6c 64 20 66 | 69 6c 65 20 68 61 64 20 |he old f|ile had |
|00000700| 77 69 6c 6c 20 6e 6f 77 | 20 72 65 66 65 72 20 74 |will now| refer t|
|00000710| 6f 20 74 68 65 20 6e 65 | 77 20 28 65 64 69 74 65 |o the ne|w (edite|
|00000720| 64 29 20 66 69 6c 65 2e | 0a 54 68 65 20 66 69 6c |d) file.|.The fil|
|00000730| 65 27 73 20 6f 77 6e 65 | 72 20 61 6e 64 20 67 72 |e's owne|r and gr|
|00000740| 6f 75 70 20 61 72 65 20 | 75 6e 63 68 61 6e 67 65 |oup are |unchange|
|00000750| 64 2e 0a 0a 54 68 65 20 | 63 68 6f 69 63 65 20 6f |d...The |choice o|
|00000760| 66 20 72 65 6e 61 6d 69 | 6e 67 20 6f 72 20 63 6f |f renami|ng or co|
|00000770| 70 79 69 6e 67 20 69 73 | 20 63 6f 6e 74 72 6f 6c |pying is| control|
|00000780| 6c 65 64 20 62 79 20 74 | 68 65 20 76 61 72 69 61 |led by t|he varia|
|00000790| 62 6c 65 73 0a 60 62 61 | 63 6b 75 70 2d 62 79 2d |bles.`ba|ckup-by-|
|000007a0| 63 6f 70 79 69 6e 67 27 | 2c 20 60 62 61 63 6b 75 |copying'|, `backu|
|000007b0| 70 2d 62 79 2d 63 6f 70 | 79 69 6e 67 2d 77 68 65 |p-by-cop|ying-whe|
|000007c0| 6e 2d 6c 69 6e 6b 65 64 | 27 20 61 6e 64 0a 60 62 |n-linked|' and.`b|
|000007d0| 61 63 6b 75 70 2d 62 79 | 2d 63 6f 70 79 69 6e 67 |ackup-by|-copying|
|000007e0| 2d 77 68 65 6e 2d 6d 69 | 73 6d 61 74 63 68 27 2e |-when-mi|smatch'.|
|000007f0| 20 20 53 65 65 20 61 6c | 73 6f 20 60 62 61 63 6b | See al|so `back|
|00000800| 75 70 2d 69 6e 68 69 62 | 69 74 65 64 27 2e 22 29 |up-inhib|ited'.")|
|00000810| 0a 28 64 65 66 76 61 72 | 20 62 61 63 6b 75 70 2d |.(defvar| backup-|
|00000820| 69 6e 68 69 62 69 74 65 | 64 20 6e 69 6c 20 22 5c |inhibite|d nil "\|
|00000830| 0a 4e 6f 6e 2d 6e 69 6c | 20 6d 65 61 6e 73 20 64 |.Non-nil| means d|
|00000840| 6f 6e 27 74 20 6d 61 6b | 65 20 61 20 62 61 63 6b |on't mak|e a back|
|00000850| 75 70 2c 20 72 65 67 61 | 72 64 6c 65 73 73 20 6f |up, rega|rdless o|
|00000860| 66 20 74 68 65 20 6f 74 | 68 65 72 20 70 61 72 61 |f the ot|her para|
|00000870| 6d 65 74 65 72 73 2e 0a | 54 68 69 73 20 76 61 72 |meters..|This var|
|00000880| 69 61 62 6c 65 20 69 73 | 20 69 6e 74 65 6e 64 65 |iable is| intende|
|00000890| 64 20 66 6f 72 20 75 73 | 65 20 62 79 20 6d 61 6b |d for us|e by mak|
|000008a0| 69 6e 67 20 69 74 20 6c | 6f 63 61 6c 20 74 6f 20 |ing it l|ocal to |
|000008b0| 61 20 62 75 66 66 65 72 | 2e 0a 42 75 74 20 69 74 |a buffer|..But it|
|000008c0| 20 69 73 20 6c 6f 63 61 | 6c 20 6f 6e 6c 79 20 69 | is loca|l only i|
|000008d0| 66 20 79 6f 75 20 6d 61 | 6b 65 20 69 74 20 6c 6f |f you ma|ke it lo|
|000008e0| 63 61 6c 2e 22 29 0a 28 | 70 75 74 20 28 71 75 6f |cal.").(|put (quo|
|000008f0| 74 65 20 62 61 63 6b 75 | 70 2d 69 6e 68 69 62 69 |te backu|p-inhibi|
|00000900| 74 65 64 29 20 28 71 75 | 6f 74 65 20 70 65 72 6d |ted) (qu|ote perm|
|00000910| 61 6e 65 6e 74 2d 6c 6f | 63 61 6c 29 20 74 29 0a |anent-lo|cal) t).|
|00000920| 28 64 65 66 63 6f 6e 73 | 74 20 62 61 63 6b 75 70 |(defcons|t backup|
|00000930| 2d 62 79 2d 63 6f 70 79 | 69 6e 67 20 6e 69 6c 20 |-by-copy|ing nil |
|00000940| 22 5c 0a 2a 4e 6f 6e 2d | 6e 69 6c 20 6d 65 61 6e |"\.*Non-|nil mean|
|00000950| 73 20 61 6c 77 61 79 73 | 20 75 73 65 20 63 6f 70 |s always| use cop|
|00000960| 79 69 6e 67 20 74 6f 20 | 63 72 65 61 74 65 20 62 |ying to |create b|
|00000970| 61 63 6b 75 70 20 66 69 | 6c 65 73 2e 0a 53 65 65 |ackup fi|les..See|
|00000980| 20 64 6f 63 75 6d 65 6e | 74 61 74 69 6f 6e 20 6f | documen|tation o|
|00000990| 66 20 76 61 72 69 61 62 | 6c 65 20 60 6d 61 6b 65 |f variab|le `make|
|000009a0| 2d 62 61 63 6b 75 70 2d | 66 69 6c 65 73 27 2e 22 |-backup-|files'."|
|000009b0| 29 0a 28 64 65 66 63 6f | 6e 73 74 20 62 61 63 6b |).(defco|nst back|
|000009c0| 75 70 2d 62 79 2d 63 6f | 70 79 69 6e 67 2d 77 68 |up-by-co|pying-wh|
|000009d0| 65 6e 2d 6c 69 6e 6b 65 | 64 20 6e 69 6c 20 22 5c |en-linke|d nil "\|
|000009e0| 0a 2a 4e 6f 6e 2d 6e 69 | 6c 20 6d 65 61 6e 73 20 |.*Non-ni|l means |
|000009f0| 75 73 65 20 63 6f 70 79 | 69 6e 67 20 74 6f 20 63 |use copy|ing to c|
|00000a00| 72 65 61 74 65 20 62 61 | 63 6b 75 70 73 20 66 6f |reate ba|ckups fo|
|00000a10| 72 20 66 69 6c 65 73 20 | 77 69 74 68 20 6d 75 6c |r files |with mul|
|00000a20| 74 69 70 6c 65 20 6e 61 | 6d 65 73 2e 0a 54 68 69 |tiple na|mes..Thi|
|00000a30| 73 20 63 61 75 73 65 73 | 20 74 68 65 20 61 6c 74 |s causes| the alt|
|00000a40| 65 72 6e 61 74 65 20 6e | 61 6d 65 73 20 74 6f 20 |ernate n|ames to |
|00000a50| 72 65 66 65 72 20 74 6f | 20 74 68 65 20 6c 61 74 |refer to| the lat|
|00000a60| 65 73 74 20 76 65 72 73 | 69 6f 6e 20 61 73 20 65 |est vers|ion as e|
|00000a70| 64 69 74 65 64 2e 0a 54 | 68 69 73 20 76 61 72 69 |dited..T|his vari|
|00000a80| 61 62 6c 65 20 69 73 20 | 72 65 6c 65 76 61 6e 74 |able is |relevant|
|00000a90| 20 6f 6e 6c 79 20 69 66 | 20 60 62 61 63 6b 75 70 | only if| `backup|
|00000aa0| 2d 62 79 2d 63 6f 70 79 | 69 6e 67 27 20 69 73 20 |-by-copy|ing' is |
|00000ab0| 6e 69 6c 2e 22 29 0a 28 | 64 65 66 63 6f 6e 73 74 |nil.").(|defconst|
|00000ac0| 20 62 61 63 6b 75 70 2d | 62 79 2d 63 6f 70 79 69 | backup-|by-copyi|
|00000ad0| 6e 67 2d 77 68 65 6e 2d | 6d 69 73 6d 61 74 63 68 |ng-when-|mismatch|
|00000ae0| 20 6e 69 6c 20 22 5c 0a | 2a 4e 6f 6e 2d 6e 69 6c | nil "\.|*Non-nil|
|00000af0| 20 6d 65 61 6e 73 20 63 | 72 65 61 74 65 20 62 61 | means c|reate ba|
|00000b00| 63 6b 75 70 73 20 62 79 | 20 63 6f 70 79 69 6e 67 |ckups by| copying|
|00000b10| 20 69 66 20 74 68 69 73 | 20 70 72 65 73 65 72 76 | if this| preserv|
|00000b20| 65 73 20 6f 77 6e 65 72 | 20 6f 72 20 67 72 6f 75 |es owner| or grou|
|00000b30| 70 2e 0a 52 65 6e 61 6d | 69 6e 67 20 6d 61 79 20 |p..Renam|ing may |
|00000b40| 73 74 69 6c 6c 20 62 65 | 20 75 73 65 64 20 28 73 |still be| used (s|
|00000b50| 75 62 6a 65 63 74 20 74 | 6f 20 63 6f 6e 74 72 6f |ubject t|o contro|
|00000b60| 6c 20 6f 66 20 6f 74 68 | 65 72 20 76 61 72 69 61 |l of oth|er varia|
|00000b70| 62 6c 65 73 29 0a 77 68 | 65 6e 20 69 74 20 77 6f |bles).wh|en it wo|
|00000b80| 75 6c 64 20 6e 6f 74 20 | 72 65 73 75 6c 74 20 69 |uld not |result i|
|00000b90| 6e 20 63 68 61 6e 67 69 | 6e 67 20 74 68 65 20 6f |n changi|ng the o|
|00000ba0| 77 6e 65 72 20 6f 72 20 | 67 72 6f 75 70 20 6f 66 |wner or |group of|
|00000bb0| 20 74 68 65 20 66 69 6c | 65 3b 0a 74 68 61 74 20 | the fil|e;.that |
|00000bc0| 69 73 2c 20 66 6f 72 20 | 66 69 6c 65 73 20 77 68 |is, for |files wh|
|00000bd0| 69 63 68 20 61 72 65 20 | 6f 77 6e 65 64 20 62 79 |ich are |owned by|
|00000be0| 20 79 6f 75 20 61 6e 64 | 20 77 68 6f 73 65 20 67 | you and| whose g|
|00000bf0| 72 6f 75 70 20 6d 61 74 | 63 68 65 73 0a 74 68 65 |roup mat|ches.the|
|00000c00| 20 64 65 66 61 75 6c 74 | 20 66 6f 72 20 61 20 6e | default| for a n|
|00000c10| 65 77 20 66 69 6c 65 20 | 63 72 65 61 74 65 64 20 |ew file |created |
|00000c20| 74 68 65 72 65 20 62 79 | 20 79 6f 75 2e 0a 54 68 |there by| you..Th|
|00000c30| 69 73 20 76 61 72 69 61 | 62 6c 65 20 69 73 20 72 |is varia|ble is r|
|00000c40| 65 6c 65 76 61 6e 74 20 | 6f 6e 6c 79 20 69 66 20 |elevant |only if |
|00000c50| 60 62 61 63 6b 75 70 2d | 62 79 2d 63 6f 70 79 69 |`backup-|by-copyi|
|00000c60| 6e 67 27 20 69 73 20 6e | 69 6c 2e 22 29 0a 28 64 |ng' is n|il.").(d|
|00000c70| 65 66 76 61 72 20 62 61 | 63 6b 75 70 2d 65 6e 61 |efvar ba|ckup-ena|
|00000c80| 62 6c 65 2d 70 72 65 64 | 69 63 61 74 65 20 28 71 |ble-pred|icate (q|
|00000c90| 75 6f 74 65 20 28 6c 61 | 6d 62 64 61 20 28 6e 61 |uote (la|mbda (na|
|00000ca0| 6d 65 29 20 28 6f 72 20 | 28 3c 20 28 6c 65 6e 67 |me) (or |(< (leng|
|00000cb0| 74 68 20 6e 61 6d 65 29 | 20 35 29 20 28 6e 6f 74 |th name)| 5) (not|
|00000cc0| 20 28 73 74 72 69 6e 67 | 2d 65 71 75 61 6c 20 22 | (string|-equal "|
|00000cd0| 2f 74 6d 70 2f 22 20 28 | 73 75 62 73 74 72 69 6e |/tmp/" (|substrin|
|00000ce0| 67 20 6e 61 6d 65 20 30 | 20 35 29 29 29 29 29 29 |g name 0| 5))))))|
|00000cf0| 20 22 5c 0a 50 72 65 64 | 69 63 61 74 65 20 74 68 | "\.Pred|icate th|
|00000d00| 61 74 20 6c 6f 6f 6b 73 | 20 61 74 20 61 20 66 69 |at looks| at a fi|
|00000d10| 6c 65 20 6e 61 6d 65 20 | 61 6e 64 20 64 65 63 69 |le name |and deci|
|00000d20| 64 65 73 20 77 68 65 74 | 68 65 72 20 74 6f 20 6d |des whet|her to m|
|00000d30| 61 6b 65 20 62 61 63 6b | 75 70 73 2e 0a 43 61 6c |ake back|ups..Cal|
|00000d40| 6c 65 64 20 77 69 74 68 | 20 61 6e 20 61 62 73 6f |led with| an abso|
|00000d50| 6c 75 74 65 20 66 69 6c | 65 20 6e 61 6d 65 20 61 |lute fil|e name a|
|00000d60| 73 20 61 72 67 75 6d 65 | 6e 74 2c 20 69 74 20 72 |s argume|nt, it r|
|00000d70| 65 74 75 72 6e 73 20 74 | 20 74 6f 20 65 6e 61 62 |eturns t| to enab|
|00000d80| 6c 65 20 62 61 63 6b 75 | 70 2e 22 29 0a 28 64 65 |le backu|p.").(de|
|00000d90| 66 63 6f 6e 73 74 20 62 | 75 66 66 65 72 2d 6f 66 |fconst b|uffer-of|
|00000da0| 66 65 72 2d 73 61 76 65 | 20 6e 69 6c 20 22 5c 0a |fer-save| nil "\.|
|00000db0| 2a 4e 6f 6e 2d 6e 69 6c | 20 69 6e 20 61 20 62 75 |*Non-nil| in a bu|
|00000dc0| 66 66 65 72 20 6d 65 61 | 6e 73 20 6f 66 66 65 72 |ffer mea|ns offer|
|00000dd0| 20 74 6f 20 73 61 76 65 | 20 74 68 65 20 62 75 66 | to save| the buf|
|00000de0| 66 65 72 20 6f 6e 20 65 | 78 69 74 0a 65 76 65 6e |fer on e|xit.even|
|00000df0| 20 69 66 20 74 68 65 20 | 62 75 66 66 65 72 20 69 | if the |buffer i|
|00000e00| 73 20 6e 6f 74 20 76 69 | 73 69 74 69 6e 67 20 61 |s not vi|siting a|
|00000e10| 20 66 69 6c 65 2e 0a 41 | 75 74 6f 6d 61 74 69 63 | file..A|utomatic|
|00000e20| 61 6c 6c 79 20 6c 6f 63 | 61 6c 20 69 6e 20 61 6c |ally loc|al in al|
|00000e30| 6c 20 62 75 66 66 65 72 | 73 2e 22 29 0a 28 6d 61 |l buffer|s.").(ma|
|00000e40| 6b 65 2d 76 61 72 69 61 | 62 6c 65 2d 62 75 66 66 |ke-varia|ble-buff|
|00000e50| 65 72 2d 6c 6f 63 61 6c | 20 28 71 75 6f 74 65 20 |er-local| (quote |
|00000e60| 62 75 66 66 65 72 2d 6f | 66 66 65 72 2d 73 61 76 |buffer-o|ffer-sav|
|00000e70| 65 29 29 0a 28 64 65 66 | 63 6f 6e 73 74 20 66 69 |e)).(def|const fi|
|00000e80| 6e 64 2d 66 69 6c 65 2d | 65 78 69 73 74 69 6e 67 |nd-file-|existing|
|00000e90| 2d 6f 74 68 65 72 2d 6e | 61 6d 65 20 6e 69 6c 20 |-other-n|ame nil |
|00000ea0| 22 5c 0a 2a 4e 6f 6e 2d | 6e 69 6c 20 6d 65 61 6e |"\.*Non-|nil mean|
|00000eb0| 73 20 66 69 6e 64 20 61 | 20 66 69 6c 65 20 75 6e |s find a| file un|
|00000ec0| 64 65 72 20 61 6c 74 65 | 72 6e 61 74 69 76 65 20 |der alte|rnative |
|00000ed0| 6e 61 6d 65 73 2c 20 69 | 6e 20 65 78 69 73 74 69 |names, i|n existi|
|00000ee0| 6e 67 20 62 75 66 66 65 | 72 73 2e 0a 54 68 69 73 |ng buffe|rs..This|
|00000ef0| 20 6d 65 61 6e 73 20 69 | 66 20 61 6e 79 20 65 78 | means i|f any ex|
|00000f00| 69 73 74 69 6e 67 20 62 | 75 66 66 65 72 20 69 73 |isting b|uffer is|
|00000f10| 20 76 69 73 69 74 69 6e | 67 20 74 68 65 20 66 69 | visitin|g the fi|
|00000f20| 6c 65 20 79 6f 75 20 77 | 61 6e 74 0a 75 6e 64 65 |le you w|ant.unde|
|00000f30| 72 20 61 6e 6f 74 68 65 | 72 20 6e 61 6d 65 2c 20 |r anothe|r name, |
|00000f40| 79 6f 75 20 67 65 74 20 | 74 68 65 20 65 78 69 73 |you get |the exis|
|00000f50| 74 69 6e 67 20 62 75 66 | 66 65 72 20 69 6e 73 74 |ting buf|fer inst|
|00000f60| 65 61 64 20 6f 66 20 61 | 20 6e 65 77 20 62 75 66 |ead of a| new buf|
|00000f70| 66 65 72 2e 22 29 0a 28 | 64 65 66 63 6f 6e 73 74 |fer.").(|defconst|
|00000f80| 20 66 69 6e 64 2d 66 69 | 6c 65 2d 76 69 73 69 74 | find-fi|le-visit|
|00000f90| 2d 74 72 75 65 6e 61 6d | 65 20 6e 69 6c 20 22 5c |-truenam|e nil "\|
|00000fa0| 0a 2a 4e 6f 6e 2d 6e 69 | 6c 20 6d 65 61 6e 73 20 |.*Non-ni|l means |
|00000fb0| 76 69 73 69 74 20 61 20 | 66 69 6c 65 20 75 6e 64 |visit a |file und|
|00000fc0| 65 72 20 69 74 73 20 74 | 72 75 65 6e 61 6d 65 2e |er its t|ruename.|
|00000fd0| 0a 54 68 65 20 74 72 75 | 65 6e 61 6d 65 20 6f 66 |.The tru|ename of|
|00000fe0| 20 61 20 66 69 6c 65 20 | 69 73 20 66 6f 75 6e 64 | a file |is found|
|00000ff0| 20 62 79 20 63 68 61 73 | 69 6e 67 20 61 6c 6c 20 | by chas|ing all |
|00001000| 6c 69 6e 6b 73 0a 62 6f | 74 68 20 61 74 20 74 68 |links.bo|th at th|
|00001010| 65 20 66 69 6c 65 20 6c | 65 76 65 6c 20 61 6e 64 |e file l|evel and|
|00001020| 20 61 74 20 74 68 65 20 | 6c 65 76 65 6c 73 20 6f | at the |levels o|
|00001030| 66 20 74 68 65 20 63 6f | 6e 74 61 69 6e 69 6e 67 |f the co|ntaining|
|00001040| 20 64 69 72 65 63 74 6f | 72 69 65 73 2e 22 29 0a | directo|ries.").|
|00001050| 28 64 65 66 76 61 72 20 | 62 75 66 66 65 72 2d 66 |(defvar |buffer-f|
|00001060| 69 6c 65 2d 74 72 75 65 | 6e 61 6d 65 20 6e 69 6c |ile-true|name nil|
|00001070| 20 22 5c 0a 54 68 65 20 | 61 62 62 72 65 76 69 61 | "\.The |abbrevia|
|00001080| 74 65 64 20 74 72 75 65 | 6e 61 6d 65 20 6f 66 20 |ted true|name of |
|00001090| 74 68 65 20 66 69 6c 65 | 20 76 69 73 69 74 65 64 |the file| visited|
|000010a0| 20 69 6e 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 | in the |current |
|000010b0| 62 75 66 66 65 72 2e 0a | 54 68 61 74 20 69 73 2c |buffer..|That is,|
|000010c0| 20 28 61 62 62 72 65 76 | 69 61 74 65 64 2d 66 69 | (abbrev|iated-fi|
|000010d0| 6c 65 2d 6e 61 6d 65 20 | 28 66 69 6c 65 2d 74 72 |le-name |(file-tr|
|000010e0| 75 65 6e 61 6d 65 20 62 | 75 66 66 65 72 2d 66 69 |uename b|uffer-fi|
|000010f0| 6c 65 2d 6e 61 6d 65 29 | 29 2e 0a 54 68 69 73 20 |le-name)|)..This |
|00001100| 76 61 72 69 61 62 6c 65 | 20 69 73 20 61 75 74 6f |variable| is auto|
|00001110| 6d 61 74 69 63 61 6c 6c | 79 20 6c 6f 63 61 6c 20 |maticall|y local |
|00001120| 69 6e 20 61 6c 6c 20 62 | 75 66 66 65 72 73 2c 20 |in all b|uffers, |
|00001130| 77 68 65 6e 20 6e 6f 6e | 2d 6e 69 6c 2e 22 29 0a |when non|-nil.").|
|00001140| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 21 88 |(byte-co|de "..!.|
|00001150| c2 c1 c3 c4 23 87 22 20 | 5b 6d 61 6b 65 2d 76 61 |....#." |[make-va|
|00001160| 72 69 61 62 6c 65 2d 62 | 75 66 66 65 72 2d 6c 6f |riable-b|uffer-lo|
|00001170| 63 61 6c 20 62 75 66 66 | 65 72 2d 66 69 6c 65 2d |cal buff|er-file-|
|00001180| 74 72 75 65 6e 61 6d 65 | 20 70 75 74 20 70 65 72 |truename| put per|
|00001190| 6d 61 6e 65 6e 74 2d 6c | 6f 63 61 6c 20 74 5d 20 |manent-l|ocal t] |
|000011a0| 34 29 0a 28 64 65 66 76 | 61 72 20 62 75 66 66 65 |4).(defv|ar buffe|
|000011b0| 72 2d 66 69 6c 65 2d 6e | 75 6d 62 65 72 20 6e 69 |r-file-n|umber ni|
|000011c0| 6c 20 22 5c 0a 54 68 65 | 20 64 65 76 69 63 65 20 |l "\.The| device |
|000011d0| 6e 75 6d 62 65 72 20 61 | 6e 64 20 66 69 6c 65 20 |number a|nd file |
|000011e0| 6e 75 6d 62 65 72 20 6f | 66 20 74 68 65 20 66 69 |number o|f the fi|
|000011f0| 6c 65 20 76 69 73 69 74 | 65 64 20 69 6e 20 74 68 |le visit|ed in th|
|00001200| 65 20 63 75 72 72 65 6e | 74 20 62 75 66 66 65 72 |e curren|t buffer|
|00001210| 2e 0a 54 68 65 20 76 61 | 6c 75 65 20 69 73 20 61 |..The va|lue is a|
|00001220| 20 6c 69 73 74 20 6f 66 | 20 74 68 65 20 66 6f 72 | list of| the for|
|00001230| 6d 20 28 46 49 4c 45 4e | 55 4d 20 44 45 56 4e 55 |m (FILEN|UM DEVNU|
|00001240| 4d 29 2e 0a 54 68 69 73 | 20 70 61 69 72 20 6f 66 |M)..This| pair of|
|00001250| 20 6e 75 6d 62 65 72 73 | 20 75 6e 69 71 75 65 6c | numbers| uniquel|
|00001260| 79 20 69 64 65 6e 74 69 | 66 69 65 73 20 74 68 65 |y identi|fies the|
|00001270| 20 66 69 6c 65 2e 0a 49 | 66 20 74 68 65 20 62 75 | file..I|f the bu|
|00001280| 66 66 65 72 20 69 73 20 | 76 69 73 69 74 69 6e 67 |ffer is |visiting|
|00001290| 20 61 20 6e 65 77 20 66 | 69 6c 65 2c 20 74 68 65 | a new f|ile, the|
|000012a0| 20 76 61 6c 75 65 20 69 | 73 20 6e 69 6c 2e 22 29 | value i|s nil.")|
|000012b0| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 21 |.(byte-c|ode "..!|
|000012c0| 88 c2 c1 c3 c4 23 87 22 | 20 5b 6d 61 6b 65 2d 76 |.....#."| [make-v|
|000012d0| 61 72 69 61 62 6c 65 2d | 62 75 66 66 65 72 2d 6c |ariable-|buffer-l|
|000012e0| 6f 63 61 6c 20 62 75 66 | 66 65 72 2d 66 69 6c 65 |ocal buf|fer-file|
|000012f0| 2d 6e 75 6d 62 65 72 20 | 70 75 74 20 70 65 72 6d |-number |put perm|
|00001300| 61 6e 65 6e 74 2d 6c 6f | 63 61 6c 20 74 5d 20 34 |anent-lo|cal t] 4|
|00001310| 29 0a 28 64 65 66 63 6f | 6e 73 74 20 66 69 6c 65 |).(defco|nst file|
|00001320| 2d 70 72 65 63 69 6f 75 | 73 2d 66 6c 61 67 20 6e |-preciou|s-flag n|
|00001330| 69 6c 20 22 5c 0a 2a 4e | 6f 6e 2d 6e 69 6c 20 6d |il "\.*N|on-nil m|
|00001340| 65 61 6e 73 20 70 72 6f | 74 65 63 74 20 61 67 61 |eans pro|tect aga|
|00001350| 69 6e 73 74 20 49 2f 4f | 20 65 72 72 6f 72 73 20 |inst I/O| errors |
|00001360| 77 68 69 6c 65 20 73 61 | 76 69 6e 67 20 66 69 6c |while sa|ving fil|
|00001370| 65 73 2e 0a 53 6f 6d 65 | 20 6d 6f 64 65 73 20 73 |es..Some| modes s|
|00001380| 65 74 20 74 68 69 73 20 | 6e 6f 6e 2d 6e 69 6c 20 |et this |non-nil |
|00001390| 69 6e 20 70 61 72 74 69 | 63 75 6c 61 72 20 62 75 |in parti|cular bu|
|000013a0| 66 66 65 72 73 2e 22 29 | 0a 28 64 65 66 76 61 72 |ffers.")|.(defvar|
|000013b0| 20 76 65 72 73 69 6f 6e | 2d 63 6f 6e 74 72 6f 6c | version|-control|
|000013c0| 20 6e 69 6c 20 22 5c 0a | 2a 43 6f 6e 74 72 6f 6c | nil "\.|*Control|
|000013d0| 20 75 73 65 20 6f 66 20 | 76 65 72 73 69 6f 6e 20 | use of |version |
|000013e0| 6e 75 6d 62 65 72 73 20 | 66 6f 72 20 62 61 63 6b |numbers |for back|
|000013f0| 75 70 20 66 69 6c 65 73 | 2e 0a 74 20 6d 65 61 6e |up files|..t mean|
|00001400| 73 20 6d 61 6b 65 20 6e | 75 6d 65 72 69 63 20 62 |s make n|umeric b|
|00001410| 61 63 6b 75 70 20 76 65 | 72 73 69 6f 6e 73 20 75 |ackup ve|rsions u|
|00001420| 6e 63 6f 6e 64 69 74 69 | 6f 6e 61 6c 6c 79 2e 0a |nconditi|onally..|
|00001430| 6e 69 6c 20 6d 65 61 6e | 73 20 6d 61 6b 65 20 74 |nil mean|s make t|
|00001440| 68 65 6d 20 66 6f 72 20 | 66 69 6c 65 73 20 74 68 |hem for |files th|
|00001450| 61 74 20 68 61 76 65 20 | 73 6f 6d 65 20 61 6c 72 |at have |some alr|
|00001460| 65 61 64 79 2e 0a 60 6e | 65 76 65 72 27 20 6d 65 |eady..`n|ever' me|
|00001470| 61 6e 73 20 64 6f 20 6e | 6f 74 20 6d 61 6b 65 20 |ans do n|ot make |
|00001480| 74 68 65 6d 2e 22 29 0a | 28 64 65 66 76 61 72 20 |them.").|(defvar |
|00001490| 64 69 72 65 64 2d 6b 65 | 70 74 2d 76 65 72 73 69 |dired-ke|pt-versi|
|000014a0| 6f 6e 73 20 32 20 22 5c | 0a 2a 57 68 65 6e 20 63 |ons 2 "\|.*When c|
|000014b0| 6c 65 61 6e 69 6e 67 20 | 64 69 72 65 63 74 6f 72 |leaning |director|
|000014c0| 79 2c 20 6e 75 6d 62 65 | 72 20 6f 66 20 76 65 72 |y, numbe|r of ver|
|000014d0| 73 69 6f 6e 73 20 74 6f | 20 6b 65 65 70 2e 22 29 |sions to| keep.")|
|000014e0| 0a 28 64 65 66 76 61 72 | 20 64 65 6c 65 74 65 2d |.(defvar| delete-|
|000014f0| 6f 6c 64 2d 76 65 72 73 | 69 6f 6e 73 20 6e 69 6c |old-vers|ions nil|
|00001500| 20 22 5c 0a 2a 49 66 20 | 74 2c 20 64 65 6c 65 74 | "\.*If |t, delet|
|00001510| 65 20 65 78 63 65 73 73 | 20 62 61 63 6b 75 70 20 |e excess| backup |
|00001520| 76 65 72 73 69 6f 6e 73 | 20 73 69 6c 65 6e 74 6c |versions| silentl|
|00001530| 79 2e 0a 49 66 20 6e 69 | 6c 2c 20 61 73 6b 20 63 |y..If ni|l, ask c|
|00001540| 6f 6e 66 69 72 6d 61 74 | 69 6f 6e 2e 20 20 41 6e |onfirmat|ion. An|
|00001550| 79 20 6f 74 68 65 72 20 | 76 61 6c 75 65 20 70 72 |y other |value pr|
|00001560| 65 76 65 6e 74 73 20 61 | 6e 79 20 74 72 69 6d 6d |events a|ny trimm|
|00001570| 69 6e 67 2e 22 29 0a 28 | 64 65 66 76 61 72 20 6b |ing.").(|defvar k|
|00001580| 65 70 74 2d 6f 6c 64 2d | 76 65 72 73 69 6f 6e 73 |ept-old-|versions|
|00001590| 20 32 20 22 5c 0a 2a 4e | 75 6d 62 65 72 20 6f 66 | 2 "\.*N|umber of|
|000015a0| 20 6f 6c 64 65 73 74 20 | 76 65 72 73 69 6f 6e 73 | oldest |versions|
|000015b0| 20 74 6f 20 6b 65 65 70 | 20 77 68 65 6e 20 61 20 | to keep| when a |
|000015c0| 6e 65 77 20 6e 75 6d 62 | 65 72 65 64 20 62 61 63 |new numb|ered bac|
|000015d0| 6b 75 70 20 69 73 20 6d | 61 64 65 2e 22 29 0a 28 |kup is m|ade.").(|
|000015e0| 64 65 66 76 61 72 20 6b | 65 70 74 2d 6e 65 77 2d |defvar k|ept-new-|
|000015f0| 76 65 72 73 69 6f 6e 73 | 20 32 20 22 5c 0a 2a 4e |versions| 2 "\.*N|
|00001600| 75 6d 62 65 72 20 6f 66 | 20 6e 65 77 65 73 74 20 |umber of| newest |
|00001610| 76 65 72 73 69 6f 6e 73 | 20 74 6f 20 6b 65 65 70 |versions| to keep|
|00001620| 20 77 68 65 6e 20 61 20 | 6e 65 77 20 6e 75 6d 62 | when a |new numb|
|00001630| 65 72 65 64 20 62 61 63 | 6b 75 70 20 69 73 20 6d |ered bac|kup is m|
|00001640| 61 64 65 2e 0a 49 6e 63 | 6c 75 64 65 73 20 74 68 |ade..Inc|ludes th|
|00001650| 65 20 6e 65 77 20 62 61 | 63 6b 75 70 2e 20 20 4d |e new ba|ckup. M|
|00001660| 75 73 74 20 62 65 20 3e | 20 30 22 29 0a 28 64 65 |ust be >| 0").(de|
|00001670| 66 63 6f 6e 73 74 20 72 | 65 71 75 69 72 65 2d 66 |fconst r|equire-f|
|00001680| 69 6e 61 6c 2d 6e 65 77 | 6c 69 6e 65 20 6e 69 6c |inal-new|line nil|
|00001690| 20 22 5c 0a 2a 56 61 6c | 75 65 20 6f 66 20 74 20 | "\.*Val|ue of t |
|000016a0| 73 61 79 73 20 73 69 6c | 65 6e 74 6c 79 20 65 6e |says sil|ently en|
|000016b0| 73 75 72 65 20 61 20 66 | 69 6c 65 20 65 6e 64 73 |sure a f|ile ends|
|000016c0| 20 69 6e 20 61 20 6e 65 | 77 6c 69 6e 65 20 77 68 | in a ne|wline wh|
|000016d0| 65 6e 20 69 74 20 69 73 | 20 73 61 76 65 64 2e 0a |en it is| saved..|
|000016e0| 4e 6f 6e 2d 6e 69 6c 20 | 62 75 74 20 6e 6f 74 20 |Non-nil |but not |
|000016f0| 74 20 73 61 79 73 20 61 | 73 6b 20 75 73 65 72 20 |t says a|sk user |
|00001700| 77 68 65 74 68 65 72 20 | 74 6f 20 61 64 64 20 61 |whether |to add a|
|00001710| 20 6e 65 77 6c 69 6e 65 | 20 77 68 65 6e 20 74 68 | newline| when th|
|00001720| 65 72 65 20 69 73 6e 27 | 74 20 6f 6e 65 2e 0a 6e |ere isn'|t one..n|
|00001730| 69 6c 20 6d 65 61 6e 73 | 20 64 6f 6e 27 74 20 61 |il means| don't a|
|00001740| 64 64 20 6e 65 77 6c 69 | 6e 65 73 2e 22 29 0a 28 |dd newli|nes.").(|
|00001750| 64 65 66 63 6f 6e 73 74 | 20 61 75 74 6f 2d 73 61 |defconst| auto-sa|
|00001760| 76 65 2d 64 65 66 61 75 | 6c 74 20 74 20 22 5c 0a |ve-defau|lt t "\.|
|00001770| 2a 4e 6f 6e 2d 6e 69 6c | 20 73 61 79 73 20 62 79 |*Non-nil| says by|
|00001780| 20 64 65 66 61 75 6c 74 | 20 64 6f 20 61 75 74 6f | default| do auto|
|00001790| 2d 73 61 76 69 6e 67 20 | 6f 66 20 65 76 65 72 79 |-saving |of every|
|000017a0| 20 66 69 6c 65 2d 76 69 | 73 69 74 69 6e 67 20 62 | file-vi|siting b|
|000017b0| 75 66 66 65 72 2e 22 29 | 0a 28 64 65 66 63 6f 6e |uffer.")|.(defcon|
|000017c0| 73 74 20 61 75 74 6f 2d | 73 61 76 65 2d 76 69 73 |st auto-|save-vis|
|000017d0| 69 74 65 64 2d 66 69 6c | 65 2d 6e 61 6d 65 20 6e |ited-fil|e-name n|
|000017e0| 69 6c 20 22 5c 0a 2a 4e | 6f 6e 2d 6e 69 6c 20 73 |il "\.*N|on-nil s|
|000017f0| 61 79 73 20 61 75 74 6f | 2d 73 61 76 65 20 61 20 |ays auto|-save a |
|00001800| 62 75 66 66 65 72 20 69 | 6e 20 74 68 65 20 66 69 |buffer i|n the fi|
|00001810| 6c 65 20 69 74 20 69 73 | 20 76 69 73 69 74 69 6e |le it is| visitin|
|00001820| 67 2c 20 77 68 65 6e 20 | 70 72 61 63 74 69 63 61 |g, when |practica|
|00001830| 6c 2e 0a 4e 6f 72 6d 61 | 6c 6c 79 20 61 75 74 6f |l..Norma|lly auto|
|00001840| 2d 73 61 76 65 20 66 69 | 6c 65 73 20 61 72 65 20 |-save fi|les are |
|00001850| 77 72 69 74 74 65 6e 20 | 75 6e 64 65 72 20 6f 74 |written |under ot|
|00001860| 68 65 72 20 6e 61 6d 65 | 73 2e 22 29 0a 28 64 65 |her name|s.").(de|
|00001870| 66 63 6f 6e 73 74 20 73 | 61 76 65 2d 61 62 62 72 |fconst s|ave-abbr|
|00001880| 65 76 73 20 6e 69 6c 20 | 22 5c 0a 2a 4e 6f 6e 2d |evs nil |"\.*Non-|
|00001890| 6e 69 6c 20 6d 65 61 6e | 73 20 73 61 76 65 20 77 |nil mean|s save w|
|000018a0| 6f 72 64 20 61 62 62 72 | 65 76 73 20 74 6f 6f 20 |ord abbr|evs too |
|000018b0| 77 68 65 6e 20 66 69 6c | 65 73 20 61 72 65 20 73 |when fil|es are s|
|000018c0| 61 76 65 64 2e 0a 4c 6f | 61 64 69 6e 67 20 61 6e |aved..Lo|ading an|
|000018d0| 20 61 62 62 72 65 76 20 | 66 69 6c 65 20 73 65 74 | abbrev |file set|
|000018e0| 73 20 74 68 69 73 20 74 | 6f 20 74 2e 22 29 0a 28 |s this t|o t.").(|
|000018f0| 64 65 66 63 6f 6e 73 74 | 20 66 69 6e 64 2d 66 69 |defconst| find-fi|
|00001900| 6c 65 2d 72 75 6e 2d 64 | 69 72 65 64 20 74 20 22 |le-run-d|ired t "|
|00001910| 5c 0a 2a 4e 6f 6e 2d 6e | 69 6c 20 73 61 79 73 20 |\.*Non-n|il says |
|00001920| 72 75 6e 20 64 69 72 65 | 64 20 69 66 20 60 66 69 |run dire|d if `fi|
|00001930| 6e 64 2d 66 69 6c 65 27 | 20 69 73 20 67 69 76 65 |nd-file'| is give|
|00001940| 6e 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 61 20 |n the na|me of a |
|00001950| 64 69 72 65 63 74 6f 72 | 79 2e 22 29 0a 28 64 65 |director|y.").(de|
|00001960| 66 76 61 72 20 66 69 6e | 64 2d 66 69 6c 65 2d 6e |fvar fin|d-file-n|
|00001970| 6f 74 2d 66 6f 75 6e 64 | 2d 68 6f 6f 6b 73 20 6e |ot-found|-hooks n|
|00001980| 69 6c 20 22 5c 0a 4c 69 | 73 74 20 6f 66 20 66 75 |il "\.Li|st of fu|
|00001990| 6e 63 74 69 6f 6e 73 20 | 74 6f 20 62 65 20 63 61 |nctions |to be ca|
|000019a0| 6c 6c 65 64 20 66 6f 72 | 20 60 66 69 6e 64 2d 66 |lled for| `find-f|
|000019b0| 69 6c 65 27 20 6f 6e 20 | 6e 6f 6e 65 78 69 73 74 |ile' on |nonexist|
|000019c0| 65 6e 74 20 66 69 6c 65 | 2e 0a 54 68 65 73 65 20 |ent file|..These |
|000019d0| 66 75 6e 63 74 69 6f 6e | 73 20 61 72 65 20 63 61 |function|s are ca|
|000019e0| 6c 6c 65 64 20 61 73 20 | 73 6f 6f 6e 20 61 73 20 |lled as |soon as |
|000019f0| 74 68 65 20 65 72 72 6f | 72 20 69 73 20 64 65 74 |the erro|r is det|
|00001a00| 65 63 74 65 64 2e 0a 60 | 62 75 66 66 65 72 2d 66 |ected..`|buffer-f|
|00001a10| 69 6c 65 2d 6e 61 6d 65 | 27 20 69 73 20 61 6c 72 |ile-name|' is alr|
|00001a20| 65 61 64 79 20 73 65 74 | 20 75 70 2e 0a 54 68 65 |eady set| up..The|
|00001a30| 20 66 75 6e 63 74 69 6f | 6e 73 20 61 72 65 20 63 | functio|ns are c|
|00001a40| 61 6c 6c 65 64 20 69 6e | 20 74 68 65 20 6f 72 64 |alled in| the ord|
|00001a50| 65 72 20 67 69 76 65 6e | 20 75 6e 74 69 6c 20 6f |er given| until o|
|00001a60| 6e 65 20 6f 66 20 74 68 | 65 6d 20 72 65 74 75 72 |ne of th|em retur|
|00001a70| 6e 73 20 6e 6f 6e 2d 6e | 69 6c 2e 22 29 0a 28 64 |ns non-n|il.").(d|
|00001a80| 65 66 76 61 72 20 66 69 | 6e 64 2d 66 69 6c 65 2d |efvar fi|nd-file-|
|00001a90| 68 6f 6f 6b 73 20 6e 69 | 6c 20 22 5c 0a 4c 69 73 |hooks ni|l "\.Lis|
|00001aa0| 74 20 6f 66 20 66 75 6e | 63 74 69 6f 6e 73 20 74 |t of fun|ctions t|
|00001ab0| 6f 20 62 65 20 63 61 6c | 6c 65 64 20 61 66 74 65 |o be cal|led afte|
|00001ac0| 72 20 61 20 62 75 66 66 | 65 72 20 69 73 20 6c 6f |r a buff|er is lo|
|00001ad0| 61 64 65 64 20 66 72 6f | 6d 20 61 20 66 69 6c 65 |aded fro|m a file|
|00001ae0| 2e 0a 54 68 65 20 62 75 | 66 66 65 72 27 73 20 6c |..The bu|ffer's l|
|00001af0| 6f 63 61 6c 20 76 61 72 | 69 61 62 6c 65 73 20 28 |ocal var|iables (|
|00001b00| 69 66 20 61 6e 79 29 20 | 77 69 6c 6c 20 68 61 76 |if any) |will hav|
|00001b10| 65 20 62 65 65 6e 20 70 | 72 6f 63 65 73 73 65 64 |e been p|rocessed|
|00001b20| 20 62 65 66 6f 72 65 20 | 74 68 65 0a 66 75 6e 63 | before |the.func|
|00001b30| 74 69 6f 6e 73 20 61 72 | 65 20 63 61 6c 6c 65 64 |tions ar|e called|
|00001b40| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 77 72 69 74 |.").(def|var writ|
|00001b50| 65 2d 66 69 6c 65 2d 68 | 6f 6f 6b 73 20 6e 69 6c |e-file-h|ooks nil|
|00001b60| 20 22 5c 0a 4c 69 73 74 | 20 6f 66 20 66 75 6e 63 | "\.List| of func|
|00001b70| 74 69 6f 6e 73 20 74 6f | 20 62 65 20 63 61 6c 6c |tions to| be call|
|00001b80| 65 64 20 62 65 66 6f 72 | 65 20 77 72 69 74 69 6e |ed befor|e writin|
|00001b90| 67 20 6f 75 74 20 61 20 | 62 75 66 66 65 72 20 74 |g out a |buffer t|
|00001ba0| 6f 20 61 20 66 69 6c 65 | 2e 0a 49 66 20 6f 6e 65 |o a file|..If one|
|00001bb0| 20 6f 66 20 74 68 65 6d | 20 72 65 74 75 72 6e 73 | of them| returns|
|00001bc0| 20 6e 6f 6e 2d 6e 69 6c | 2c 20 74 68 65 20 66 69 | non-nil|, the fi|
|00001bd0| 6c 65 20 69 73 20 63 6f | 6e 73 69 64 65 72 65 64 |le is co|nsidered|
|00001be0| 20 61 6c 72 65 61 64 79 | 20 77 72 69 74 74 65 6e | already| written|
|00001bf0| 0a 61 6e 64 20 74 68 65 | 20 72 65 73 74 20 61 72 |.and the| rest ar|
|00001c00| 65 20 6e 6f 74 20 63 61 | 6c 6c 65 64 2e 0a 54 68 |e not ca|lled..Th|
|00001c10| 65 73 65 20 68 6f 6f 6b | 73 20 61 72 65 20 63 6f |ese hook|s are co|
|00001c20| 6e 73 69 64 65 72 65 64 | 20 74 6f 20 70 65 72 74 |nsidered| to pert|
|00001c30| 61 69 6e 20 74 6f 20 74 | 68 65 20 76 69 73 69 74 |ain to t|he visit|
|00001c40| 65 64 20 66 69 6c 65 2e | 0a 53 6f 20 74 68 69 73 |ed file.|.So this|
|00001c50| 20 6c 69 73 74 20 69 73 | 20 63 6c 65 61 72 65 64 | list is| cleared|
|00001c60| 20 69 66 20 79 6f 75 20 | 63 68 61 6e 67 65 20 74 | if you |change t|
|00001c70| 68 65 20 76 69 73 69 74 | 65 64 20 66 69 6c 65 20 |he visit|ed file |
|00001c80| 6e 61 6d 65 2e 0a 53 65 | 65 20 61 6c 73 6f 20 60 |name..Se|e also `|
|00001c90| 77 72 69 74 65 2d 63 6f | 6e 74 65 6e 74 73 2d 68 |write-co|ntents-h|
|00001ca0| 6f 6f 6b 73 27 2e 0a 44 | 6f 6e 27 74 20 6d 61 6b |ooks'..D|on't mak|
|00001cb0| 65 20 74 68 69 73 20 76 | 61 72 69 61 62 6c 65 20 |e this v|ariable |
|00001cc0| 62 75 66 66 65 72 2d 6c | 6f 63 61 6c 3b 20 69 6e |buffer-l|ocal; in|
|00001cd0| 73 74 65 61 64 2c 20 75 | 73 65 20 60 6c 6f 63 61 |stead, u|se `loca|
|00001ce0| 6c 2d 77 72 69 74 65 2d | 66 69 6c 65 2d 68 6f 6f |l-write-|file-hoo|
|00001cf0| 6b 73 27 2e 22 29 0a 28 | 70 75 74 20 28 71 75 6f |ks'.").(|put (quo|
|00001d00| 74 65 20 77 72 69 74 65 | 2d 66 69 6c 65 2d 68 6f |te write|-file-ho|
|00001d10| 6f 6b 73 29 20 28 71 75 | 6f 74 65 20 70 65 72 6d |oks) (qu|ote perm|
|00001d20| 61 6e 65 6e 74 2d 6c 6f | 63 61 6c 29 20 74 29 0a |anent-lo|cal) t).|
|00001d30| 28 64 65 66 76 61 72 20 | 6c 6f 63 61 6c 2d 77 72 |(defvar |local-wr|
|00001d40| 69 74 65 2d 66 69 6c 65 | 2d 68 6f 6f 6b 73 20 6e |ite-file|-hooks n|
|00001d50| 69 6c 20 22 5c 0a 4a 75 | 73 74 20 6c 69 6b 65 20 |il "\.Ju|st like |
|00001d60| 60 77 72 69 74 65 2d 66 | 69 6c 65 2d 68 6f 6f 6b |`write-f|ile-hook|
|00001d70| 73 27 2c 20 65 78 63 65 | 70 74 20 69 6e 74 65 6e |s', exce|pt inten|
|00001d80| 64 65 64 20 66 6f 72 20 | 70 65 72 2d 62 75 66 66 |ded for |per-buff|
|00001d90| 65 72 20 75 73 65 2e 0a | 54 68 65 20 66 75 6e 63 |er use..|The func|
|00001da0| 74 69 6f 6e 73 20 69 6e | 20 74 68 69 73 20 6c 69 |tions in| this li|
|00001db0| 73 74 20 61 72 65 20 63 | 61 6c 6c 65 64 20 62 65 |st are c|alled be|
|00001dc0| 66 6f 72 65 20 74 68 65 | 20 6f 6e 65 73 20 69 6e |fore the| ones in|
|00001dd0| 0a 60 77 72 69 74 65 2d | 66 69 6c 65 2d 68 6f 6f |.`write-|file-hoo|
|00001de0| 6b 73 27 2e 22 29 0a 28 | 62 79 74 65 2d 63 6f 64 |ks'.").(|byte-cod|
|00001df0| 65 20 22 c0 c1 21 88 c2 | c1 c3 c4 23 87 22 20 5b |e "..!..|...#." [|
|00001e00| 6d 61 6b 65 2d 76 61 72 | 69 61 62 6c 65 2d 62 75 |make-var|iable-bu|
|00001e10| 66 66 65 72 2d 6c 6f 63 | 61 6c 20 6c 6f 63 61 6c |ffer-loc|al local|
|00001e20| 2d 77 72 69 74 65 2d 66 | 69 6c 65 2d 68 6f 6f 6b |-write-f|ile-hook|
|00001e30| 73 20 70 75 74 20 70 65 | 72 6d 61 6e 65 6e 74 2d |s put pe|rmanent-|
|00001e40| 6c 6f 63 61 6c 20 74 5d | 20 34 29 0a 28 64 65 66 |local t]| 4).(def|
|00001e50| 76 61 72 20 77 72 69 74 | 65 2d 63 6f 6e 74 65 6e |var writ|e-conten|
|00001e60| 74 73 2d 68 6f 6f 6b 73 | 20 6e 69 6c 20 22 5c 0a |ts-hooks| nil "\.|
|00001e70| 4c 69 73 74 20 6f 66 20 | 66 75 6e 63 74 69 6f 6e |List of |function|
|00001e80| 73 20 74 6f 20 62 65 20 | 63 61 6c 6c 65 64 20 62 |s to be |called b|
|00001e90| 65 66 6f 72 65 20 77 72 | 69 74 69 6e 67 20 6f 75 |efore wr|iting ou|
|00001ea0| 74 20 61 20 62 75 66 66 | 65 72 20 74 6f 20 61 20 |t a buff|er to a |
|00001eb0| 66 69 6c 65 2e 0a 49 66 | 20 6f 6e 65 20 6f 66 20 |file..If| one of |
|00001ec0| 74 68 65 6d 20 72 65 74 | 75 72 6e 73 20 6e 6f 6e |them ret|urns non|
|00001ed0| 2d 6e 69 6c 2c 20 74 68 | 65 20 66 69 6c 65 20 69 |-nil, th|e file i|
|00001ee0| 73 20 63 6f 6e 73 69 64 | 65 72 65 64 20 61 6c 72 |s consid|ered alr|
|00001ef0| 65 61 64 79 20 77 72 69 | 74 74 65 6e 0a 61 6e 64 |eady wri|tten.and|
|00001f00| 20 74 68 65 20 72 65 73 | 74 20 61 72 65 20 6e 6f | the res|t are no|
|00001f10| 74 20 63 61 6c 6c 65 64 | 2e 0a 54 68 65 73 65 20 |t called|..These |
|00001f20| 68 6f 6f 6b 73 20 61 72 | 65 20 63 6f 6e 73 69 64 |hooks ar|e consid|
|00001f30| 65 72 65 64 20 74 6f 20 | 70 65 72 74 61 69 6e 20 |ered to |pertain |
|00001f40| 74 6f 20 74 68 65 20 62 | 75 66 66 65 72 27 73 20 |to the b|uffer's |
|00001f50| 63 6f 6e 74 65 6e 74 73 | 2c 0a 6e 6f 74 20 74 6f |contents|,.not to|
|00001f60| 20 74 68 65 20 70 61 72 | 74 69 63 75 6c 61 72 20 | the par|ticular |
|00001f70| 76 69 73 69 74 65 64 20 | 66 69 6c 65 3b 20 74 68 |visited |file; th|
|00001f80| 75 73 2c 20 60 73 65 74 | 2d 76 69 73 69 74 65 64 |us, `set|-visited|
|00001f90| 2d 66 69 6c 65 2d 6e 61 | 6d 65 27 20 64 6f 65 73 |-file-na|me' does|
|00001fa0| 0a 6e 6f 74 20 63 6c 65 | 61 72 20 74 68 69 73 20 |.not cle|ar this |
|00001fb0| 76 61 72 69 61 62 6c 65 | 2c 20 62 75 74 20 63 68 |variable|, but ch|
|00001fc0| 61 6e 67 69 6e 67 20 74 | 68 65 20 6d 61 6a 6f 72 |anging t|he major|
|00001fd0| 20 6d 6f 64 65 20 64 6f | 65 73 20 63 6c 65 61 72 | mode do|es clear|
|00001fe0| 20 69 74 2e 0a 53 65 65 | 20 61 6c 73 6f 20 60 77 | it..See| also `w|
|00001ff0| 72 69 74 65 2d 66 69 6c | 65 2d 68 6f 6f 6b 73 27 |rite-fil|e-hooks'|
|00002000| 2e 22 29 0a 28 64 65 66 | 63 6f 6e 73 74 20 65 6e |.").(def|const en|
|00002010| 61 62 6c 65 2d 6c 6f 63 | 61 6c 2d 76 61 72 69 61 |able-loc|al-varia|
|00002020| 62 6c 65 73 20 74 20 22 | 5c 0a 2a 43 6f 6e 74 72 |bles t "|\.*Contr|
|00002030| 6f 6c 20 75 73 65 20 6f | 66 20 6c 6f 63 61 6c 2d |ol use o|f local-|
|00002040| 76 61 72 69 61 62 6c 65 | 73 20 6c 69 73 74 73 20 |variable|s lists |
|00002050| 69 6e 20 66 69 6c 65 73 | 20 79 6f 75 20 76 69 73 |in files| you vis|
|00002060| 69 74 2e 0a 54 68 65 20 | 76 61 6c 75 65 20 63 61 |it..The |value ca|
|00002070| 6e 20 62 65 20 74 2c 20 | 6e 69 6c 20 6f 72 20 73 |n be t, |nil or s|
|00002080| 6f 6d 65 74 68 69 6e 67 | 20 65 6c 73 65 2e 0a 41 |omething| else..A|
|00002090| 20 76 61 6c 75 65 20 6f | 66 20 74 20 6d 65 61 6e | value o|f t mean|
|000020a0| 73 20 6c 6f 63 61 6c 2d | 76 61 72 69 61 62 6c 65 |s local-|variable|
|000020b0| 73 20 6c 69 73 74 73 20 | 61 72 65 20 6f 62 65 79 |s lists |are obey|
|000020c0| 65 64 3b 0a 6e 69 6c 20 | 6d 65 61 6e 73 20 74 68 |ed;.nil |means th|
|000020d0| 65 79 20 61 72 65 20 69 | 67 6e 6f 72 65 64 3b 20 |ey are i|gnored; |
|000020e0| 61 6e 79 74 68 69 6e 67 | 20 65 6c 73 65 20 6d 65 |anything| else me|
|000020f0| 61 6e 73 20 71 75 65 72 | 79 2e 0a 0a 54 68 65 20 |ans quer|y...The |
|00002100| 63 6f 6d 6d 61 6e 64 20 | 5c 5c 5b 6e 6f 72 6d 61 |command |\\[norma|
|00002110| 6c 2d 6d 6f 64 65 5d 20 | 61 6c 77 61 79 73 20 6f |l-mode] |always o|
|00002120| 62 65 79 73 20 6c 6f 63 | 61 6c 2d 76 61 72 69 61 |beys loc|al-varia|
|00002130| 62 6c 65 73 20 6c 69 73 | 74 73 0a 61 6e 64 20 69 |bles lis|ts.and i|
|00002140| 67 6e 6f 72 65 73 20 74 | 68 69 73 20 76 61 72 69 |gnores t|his vari|
|00002150| 61 62 6c 65 2e 22 29 0a | 28 64 65 66 63 6f 6e 73 |able.").|(defcons|
|00002160| 74 20 65 6e 61 62 6c 65 | 2d 6c 6f 63 61 6c 2d 65 |t enable|-local-e|
|00002170| 76 61 6c 20 28 71 75 6f | 74 65 20 6d 61 79 62 65 |val (quo|te maybe|
|00002180| 29 20 22 5c 0a 2a 43 6f | 6e 74 72 6f 6c 20 70 72 |) "\.*Co|ntrol pr|
|00002190| 6f 63 65 73 73 69 6e 67 | 20 6f 66 20 74 68 65 20 |ocessing| of the |
|000021a0| 5c 22 76 61 72 69 61 62 | 6c 65 5c 22 20 60 65 76 |\"variab|le\" `ev|
|000021b0| 61 6c 27 20 69 6e 20 61 | 20 66 69 6c 65 27 73 20 |al' in a| file's |
|000021c0| 6c 6f 63 61 6c 20 76 61 | 72 69 61 62 6c 65 73 2e |local va|riables.|
|000021d0| 0a 54 68 65 20 76 61 6c | 75 65 20 63 61 6e 20 62 |.The val|ue can b|
|000021e0| 65 20 74 2c 20 6e 69 6c | 20 6f 72 20 73 6f 6d 65 |e t, nil| or some|
|000021f0| 74 68 69 6e 67 20 65 6c | 73 65 2e 0a 41 20 76 61 |thing el|se..A va|
|00002200| 6c 75 65 20 6f 66 20 74 | 20 6d 65 61 6e 73 20 6f |lue of t| means o|
|00002210| 62 65 79 20 60 65 76 61 | 6c 27 20 76 61 72 69 61 |bey `eva|l' varia|
|00002220| 62 6c 65 73 3b 0a 6e 69 | 6c 20 6d 65 61 6e 73 20 |bles;.ni|l means |
|00002230| 69 67 6e 6f 72 65 20 74 | 68 65 6d 3b 20 61 6e 79 |ignore t|hem; any|
|00002240| 74 68 69 6e 67 20 65 6c | 73 65 20 6d 65 61 6e 73 |thing el|se means|
|00002250| 20 71 75 65 72 79 2e 0a | 0a 54 68 65 20 63 6f 6d | query..|.The com|
|00002260| 6d 61 6e 64 20 5c 5c 5b | 6e 6f 72 6d 61 6c 2d 6d |mand \\[|normal-m|
|00002270| 6f 64 65 5d 20 61 6c 77 | 61 79 73 20 6f 62 65 79 |ode] alw|ays obey|
|00002280| 73 20 6c 6f 63 61 6c 2d | 76 61 72 69 61 62 6c 65 |s local-|variable|
|00002290| 73 20 6c 69 73 74 73 0a | 61 6e 64 20 69 67 6e 6f |s lists.|and igno|
|000022a0| 72 65 73 20 74 68 69 73 | 20 76 61 72 69 61 62 6c |res this| variabl|
|000022b0| 65 2e 22 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 |e.").(by|te-code |
|000022c0| 22 c0 c1 21 84 0b 00 c2 | c1 c3 5c 22 88 c0 c4 21 |"..!....|..\"...!|
|000022d0| 84 16 00 c2 c4 c3 5c 22 | 88 c2 c5 c6 5c 22 87 22 |......\"|....\"."|
|000022e0| 20 5b 66 62 6f 75 6e 64 | 70 20 6c 6f 63 6b 2d 62 | [fbound|p lock-b|
|000022f0| 75 66 66 65 72 20 64 65 | 66 61 6c 69 61 73 20 69 |uffer de|falias i|
|00002300| 67 6e 6f 72 65 20 75 6e | 6c 6f 63 6b 2d 62 75 66 |gnore un|lock-buf|
|00002310| 66 65 72 20 61 6e 67 65 | 2d 66 74 70 2d 63 6f 6d |fer ange|-ftp-com|
|00002320| 70 6c 65 74 69 6f 6e 2d | 68 6f 6f 6b 2d 66 75 6e |pletion-|hook-fun|
|00002330| 63 74 69 6f 6e 20 23 5b | 28 6f 70 20 26 72 65 73 |ction #[|(op &res|
|00002340| 74 20 61 72 67 73 29 20 | 22 08 c1 3e 83 5c 66 00 |t args) |"..>.\f.|
|00002350| c2 c3 08 5c 66 23 87 c5 | 0e 06 08 3d 85 16 00 0e |...\f#..|...=....|
|00002360| 07 42 08 1e 06 1e 07 c2 | 08 5c 66 5c 22 2a 87 22 |.B......|.\f\"*."|
|00002370| 20 5b 6f 70 20 28 66 69 | 6c 65 2d 6e 61 6d 65 2d | [op (fi|le-name-|
|00002380| 63 6f 6d 70 6c 65 74 69 | 6f 6e 20 66 69 6c 65 2d |completi|on file-|
|00002390| 6e 61 6d 65 2d 61 6c 6c | 2d 63 6f 6d 70 6c 65 74 |name-all|-complet|
|000023a0| 69 6f 6e 73 29 20 61 70 | 70 6c 79 20 61 6e 67 65 |ions) ap|ply ange|
|000023b0| 2d 66 74 70 2d 68 6f 6f | 6b 2d 66 75 6e 63 74 69 |-ftp-hoo|k-functi|
|000023c0| 6f 6e 20 61 72 67 73 20 | 61 6e 67 65 2d 66 74 70 |on args |ange-ftp|
|000023d0| 2d 63 6f 6d 70 6c 65 74 | 69 6f 6e 2d 68 6f 6f 6b |-complet|ion-hook|
|000023e0| 2d 66 75 6e 63 74 69 6f | 6e 20 69 6e 68 69 62 69 |-functio|n inhibi|
|000023f0| 74 2d 66 69 6c 65 2d 6e | 61 6d 65 2d 6f 70 65 72 |t-file-n|ame-oper|
|00002400| 61 74 69 6f 6e 20 69 6e | 68 69 62 69 74 2d 66 69 |ation in|hibit-fi|
|00002410| 6c 65 2d 6e 61 6d 65 2d | 68 61 6e 64 6c 65 72 73 |le-name-|handlers|
|00002420| 5d 20 34 5d 5d 20 33 29 | 0a 28 64 65 66 61 6c 69 |] 4]] 3)|.(defali|
|00002430| 61 73 20 27 70 77 64 20 | 23 5b 6e 69 6c 20 22 c0 |as 'pwd |#[nil ".|
|00002440| c1 5c 6e 5c 22 87 22 20 | 5b 6d 65 73 73 61 67 65 |.\n\"." |[message|
|00002450| 20 22 44 69 72 65 63 74 | 6f 72 79 20 25 73 22 20 | "Direct|ory %s" |
|00002460| 64 65 66 61 75 6c 74 2d | 64 69 72 65 63 74 6f 72 |default-|director|
|00002470| 79 5d 20 33 20 22 5c 0a | 53 68 6f 77 20 74 68 65 |y] 3 "\.|Show the|
|00002480| 20 63 75 72 72 65 6e 74 | 20 64 65 66 61 75 6c 74 | current| default|
|00002490| 20 64 69 72 65 63 74 6f | 72 79 2e 22 20 6e 69 6c | directo|ry." nil|
|000024a0| 5d 29 0a 28 64 65 66 76 | 61 72 20 63 64 2d 70 61 |]).(defv|ar cd-pa|
|000024b0| 74 68 20 6e 69 6c 20 22 | 5c 0a 56 61 6c 75 65 20 |th nil "|\.Value |
|000024c0| 6f 66 20 74 68 65 20 43 | 44 50 41 54 48 20 65 6e |of the C|DPATH en|
|000024d0| 76 69 72 6f 6e 6d 65 6e | 74 20 76 61 72 69 61 62 |vironmen|t variab|
|000024e0| 6c 65 2c 20 61 73 20 61 | 20 6c 69 73 74 2e 0a 4e |le, as a| list..N|
|000024f0| 6f 74 20 61 63 74 75 61 | 6c 6c 79 20 73 65 74 20 |ot actua|lly set |
|00002500| 75 70 20 75 6e 74 69 6c | 20 74 68 65 20 66 69 72 |up until| the fir|
|00002510| 73 74 20 74 69 6d 65 20 | 79 6f 75 20 79 6f 75 20 |st time |you you |
|00002520| 75 73 65 20 69 74 2e 22 | 29 0a 28 64 65 66 61 6c |use it."|).(defal|
|00002530| 69 61 73 20 27 70 61 72 | 73 65 2d 63 6f 6c 6f 6e |ias 'par|se-colon|
|00002540| 2d 70 61 74 68 20 23 5b | 28 63 64 2d 70 61 74 68 |-path #[|(cd-path|
|00002550| 29 20 22 08 85 37 00 c1 | 89 c2 c1 1b 1c 1d 1e 06 |) "..7..|........|
|00002560| 08 c7 50 10 c8 c7 08 5c | 66 23 89 13 83 35 00 0d |..P....\|f#...5..|
|00002570| 5c 66 0b 55 3f 85 2b 00 | c9 ca 08 5c 66 0b 4f 21 |\f.U?.+.|...\f.O!|
|00002580| 21 43 a4 15 0b cb 5c 5c | 14 82 11 00 0d 2c 87 22 |!C....\\|.....,."|
|00002590| 20 5b 63 64 2d 70 61 74 | 68 20 6e 69 6c 20 30 20 | [cd-pat|h nil 0 |
|000025a0| 63 64 2d 63 6f 6c 6f 6e | 20 63 64 2d 73 74 61 72 |cd-colon| cd-star|
|000025b0| 74 20 63 64 2d 6c 69 73 | 74 20 63 64 2d 70 72 65 |t cd-lis|t cd-pre|
|000025c0| 66 69 78 20 22 3a 22 20 | 73 74 72 69 6e 67 2d 6d |fix ":" |string-m|
|000025d0| 61 74 63 68 20 73 75 62 | 73 74 69 74 75 74 65 2d |atch sub|stitute-|
|000025e0| 69 6e 2d 66 69 6c 65 2d | 6e 61 6d 65 20 66 69 6c |in-file-|name fil|
|000025f0| 65 2d 6e 61 6d 65 2d 61 | 73 2d 64 69 72 65 63 74 |e-name-a|s-direct|
|00002600| 6f 72 79 20 31 5d 20 36 | 20 22 5c 0a 45 78 70 6c |ory 1] 6| "\.Expl|
|00002610| 6f 64 65 20 61 20 63 6f | 6c 6f 6e 2d 73 65 70 61 |ode a co|lon-sepa|
|00002620| 72 61 74 65 64 20 6c 69 | 73 74 20 6f 66 20 70 61 |rated li|st of pa|
|00002630| 74 68 73 20 69 6e 74 6f | 20 61 20 73 74 72 69 6e |ths into| a strin|
|00002640| 67 20 6c 69 73 74 2e 22 | 5d 29 0a 28 64 65 66 61 |g list."|]).(defa|
|00002650| 6c 69 61 73 20 27 63 64 | 2d 61 62 73 6f 6c 75 74 |lias 'cd|-absolut|
|00002660| 65 20 23 5b 28 64 69 72 | 29 20 22 08 c1 3d 84 5c |e #[(dir|) "..=.\|
|00002670| 6e 00 c2 0b 21 13 c4 c5 | 0b 21 21 13 c6 0b 21 84 |n...!...|.!!...!.|
|00002680| 1b 00 c7 c8 0b 5c 22 87 | c9 0b 21 83 26 00 0b 89 |.....\".|..!.&...|
|00002690| 16 5c 6e 87 c7 cb 0b 5c | 22 87 22 20 5b 73 79 73 |.\n....\|"." [sys|
|000026a0| 74 65 6d 2d 74 79 70 65 | 20 76 61 78 2d 76 6d 73 |tem-type| vax-vms|
|000026b0| 20 66 69 6c 65 2d 6e 61 | 6d 65 2d 61 73 2d 64 69 | file-na|me-as-di|
|000026c0| 72 65 63 74 6f 72 79 20 | 64 69 72 20 61 62 62 72 |rectory |dir abbr|
|000026d0| 65 76 69 61 74 65 2d 66 | 69 6c 65 2d 6e 61 6d 65 |eviate-f|ile-name|
|000026e0| 20 65 78 70 61 6e 64 2d | 66 69 6c 65 2d 6e 61 6d | expand-|file-nam|
|000026f0| 65 20 66 69 6c 65 2d 64 | 69 72 65 63 74 6f 72 79 |e file-d|irectory|
|00002700| 2d 70 20 65 72 72 6f 72 | 20 22 25 73 20 69 73 20 |-p error| "%s is |
|00002710| 6e 6f 74 20 61 20 64 69 | 72 65 63 74 6f 72 79 22 |not a di|rectory"|
|00002720| 20 66 69 6c 65 2d 65 78 | 65 63 75 74 61 62 6c 65 | file-ex|ecutable|
|00002730| 2d 70 20 64 65 66 61 75 | 6c 74 2d 64 69 72 65 63 |-p defau|lt-direc|
|00002740| 74 6f 72 79 20 22 43 61 | 6e 6e 6f 74 20 63 64 20 |tory "Ca|nnot cd |
|00002750| 74 6f 20 25 73 3a 20 20 | 50 65 72 6d 69 73 73 69 |to %s: |Permissi|
|00002760| 6f 6e 20 64 65 6e 69 65 | 64 22 5d 20 33 20 22 5c |on denie|d"] 3 "\|
|00002770| 0a 43 68 61 6e 67 65 20 | 63 75 72 72 65 6e 74 20 |.Change |current |
|00002780| 64 69 72 65 63 74 6f 72 | 79 20 74 6f 20 67 69 76 |director|y to giv|
|00002790| 65 6e 20 61 62 73 6f 6c | 75 74 65 20 66 69 6c 65 |en absol|ute file|
|000027a0| 20 6e 61 6d 65 20 44 49 | 52 2e 22 5d 29 0a 28 64 | name DI|R."]).(d|
|000027b0| 65 66 61 6c 69 61 73 20 | 27 63 64 20 23 5b 28 64 |efalias |'cd #[(d|
|000027c0| 69 72 29 20 22 c0 09 21 | 83 5c 66 00 c2 c3 09 21 |ir) "..!|.\f....!|
|000027d0| 21 87 5c 66 84 1f 00 c5 | c6 c7 21 21 89 1e 08 86 |!.\f....|..!!....|
|000027e0| 1d 00 c9 43 14 29 ca cb | 8d 3f 85 29 00 cc cd 21 |...C.)..|.?.)...!|
|000027f0| 87 22 20 5b 66 69 6c 65 | 2d 6e 61 6d 65 2d 61 62 |." [file|-name-ab|
|00002800| 73 6f 6c 75 74 65 2d 70 | 20 64 69 72 20 63 64 2d |solute-p| dir cd-|
|00002810| 61 62 73 6f 6c 75 74 65 | 20 65 78 70 61 6e 64 2d |absolute| expand-|
|00002820| 66 69 6c 65 2d 6e 61 6d | 65 20 63 64 2d 70 61 74 |file-nam|e cd-pat|
|00002830| 68 20 70 61 72 73 65 2d | 63 6f 6c 6f 6e 2d 70 61 |h parse-|colon-pa|
|00002840| 74 68 20 67 65 74 65 6e | 76 20 22 43 44 50 41 54 |th geten|v "CDPAT|
|00002850| 48 22 20 74 72 79 70 61 | 74 68 20 22 2e 2f 22 20 |H" trypa|th "./" |
|00002860| 66 6f 75 6e 64 20 28 62 | 79 74 65 2d 63 6f 64 65 |found (b|yte-code|
|00002870| 20 22 c0 c1 5c 6e 5c 22 | 88 c3 87 22 20 5b 6d 61 | "..\n\"|..." [ma|
|00002880| 70 63 61 72 20 23 5b 28 | 78 29 20 22 c0 09 5c 6e |pcar #[(|x) "..\n|
|00002890| 50 21 1b c4 0b 21 85 14 | 00 c5 0b 21 88 c6 c7 c8 |P!...!..|...!....|
|000028a0| 5c 22 29 87 22 20 5b 65 | 78 70 61 6e 64 2d 66 69 |\")." [e|xpand-fi|
|000028b0| 6c 65 2d 6e 61 6d 65 20 | 78 20 64 69 72 20 66 20 |le-name |x dir f |
|000028c0| 66 69 6c 65 2d 64 69 72 | 65 63 74 6f 72 79 2d 70 |file-dir|ectory-p|
|000028d0| 20 63 64 2d 61 62 73 6f | 6c 75 74 65 20 74 68 72 | cd-abso|lute thr|
|000028e0| 6f 77 20 66 6f 75 6e 64 | 20 74 5d 20 33 5d 20 63 |ow found| t] 3] c|
|000028f0| 64 2d 70 61 74 68 20 6e | 69 6c 5d 20 33 29 20 65 |d-path n|il] 3) e|
|00002900| 72 72 6f 72 20 22 4e 6f | 20 73 75 63 68 20 64 69 |rror "No| such di|
|00002910| 72 65 63 74 6f 72 79 20 | 66 6f 75 6e 64 20 76 69 |rectory |found vi|
|00002920| 61 20 43 44 50 41 54 48 | 20 65 6e 76 69 72 6f 6e |a CDPATH| environ|
|00002930| 6d 65 6e 74 20 76 61 72 | 69 61 62 6c 65 22 5d 20 |ment var|iable"] |
|00002940| 34 20 22 5c 0a 4d 61 6b | 65 20 44 49 52 20 62 65 |4 "\.Mak|e DIR be|
|00002950| 63 6f 6d 65 20 74 68 65 | 20 63 75 72 72 65 6e 74 |come the| current|
|00002960| 20 62 75 66 66 65 72 27 | 73 20 64 65 66 61 75 6c | buffer'|s defaul|
|00002970| 74 20 64 69 72 65 63 74 | 6f 72 79 2e 0a 49 66 20 |t direct|ory..If |
|00002980| 79 6f 75 72 20 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |your env|ironment|
|00002990| 20 69 6e 63 6c 75 64 65 | 73 20 61 20 60 43 44 50 | include|s a `CDP|
|000029a0| 41 54 48 27 20 76 61 72 | 69 61 62 6c 65 2c 20 74 |ATH' var|iable, t|
|000029b0| 72 79 20 65 61 63 68 20 | 6f 6e 65 20 6f 66 20 74 |ry each |one of t|
|000029c0| 68 61 74 0a 63 6f 6c 6f | 6e 2d 73 65 70 61 72 61 |hat.colo|n-separa|
|000029d0| 74 65 64 20 6c 69 73 74 | 20 6f 66 20 64 69 72 65 |ted list| of dire|
|000029e0| 63 74 6f 72 69 65 73 20 | 77 68 65 6e 20 72 65 73 |ctories |when res|
|000029f0| 6f 6c 76 69 6e 67 20 61 | 20 72 65 6c 61 74 69 76 |olving a| relativ|
|00002a00| 65 20 64 69 72 65 63 74 | 6f 72 79 20 6e 61 6d 65 |e direct|ory name|
|00002a10| 2e 22 20 22 46 43 68 61 | 6e 67 65 20 64 65 66 61 |." "FCha|nge defa|
|00002a20| 75 6c 74 20 64 69 72 65 | 63 74 6f 72 79 3a 20 22 |ult dire|ctory: "|
|00002a30| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 6c 6f |]).(defa|lias 'lo|
|00002a40| 61 64 2d 66 69 6c 65 20 | 23 5b 28 66 69 6c 65 29 |ad-file |#[(file)|
|00002a50| 20 22 c0 c1 5c 6e 21 c3 | 89 c4 24 87 22 20 5b 6c | "..\n!.|..$." [l|
|00002a60| 6f 61 64 20 65 78 70 61 | 6e 64 2d 66 69 6c 65 2d |oad expa|nd-file-|
|00002a70| 6e 61 6d 65 20 66 69 6c | 65 20 6e 69 6c 20 74 5d |name fil|e nil t]|
|00002a80| 20 35 20 22 5c 0a 4c 6f | 61 64 20 74 68 65 20 4c | 5 "\.Lo|ad the L|
|00002a90| 69 73 70 20 66 69 6c 65 | 20 6e 61 6d 65 64 20 46 |isp file| named F|
|00002aa0| 49 4c 45 2e 22 20 22 66 | 4c 6f 61 64 20 66 69 6c |ILE." "f|Load fil|
|00002ab0| 65 3a 20 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |e: "]).(|defalias|
|00002ac0| 20 27 6c 6f 61 64 2d 6c | 69 62 72 61 72 79 20 23 | 'load-l|ibrary #|
|00002ad0| 5b 28 6c 69 62 72 61 72 | 79 29 20 22 c0 09 21 87 |[(librar|y) "..!.|
|00002ae0| 22 20 5b 6c 6f 61 64 20 | 6c 69 62 72 61 72 79 5d |" [load |library]|
|00002af0| 20 32 20 22 5c 0a 4c 6f | 61 64 20 74 68 65 20 6c | 2 "\.Lo|ad the l|
|00002b00| 69 62 72 61 72 79 20 6e | 61 6d 65 64 20 4c 49 42 |ibrary n|amed LIB|
|00002b10| 52 41 52 59 2e 0a 54 68 | 69 73 20 69 73 20 61 6e |RARY..Th|is is an|
|00002b20| 20 69 6e 74 65 72 66 61 | 63 65 20 74 6f 20 74 68 | interfa|ce to th|
|00002b30| 65 20 66 75 6e 63 74 69 | 6f 6e 20 60 6c 6f 61 64 |e functi|on `load|
|00002b40| 27 2e 22 20 22 73 4c 6f | 61 64 20 6c 69 62 72 61 |'." "sLo|ad libra|
|00002b50| 72 79 3a 20 22 5d 29 0a | 28 64 65 66 61 6c 69 61 |ry: "]).|(defalia|
|00002b60| 73 20 27 66 69 6c 65 2d | 6c 6f 63 61 6c 2d 63 6f |s 'file-|local-co|
|00002b70| 70 79 20 23 5b 28 66 69 | 6c 65 20 26 6f 70 74 69 |py #[(fi|le &opti|
|00002b80| 6f 6e 61 6c 20 62 75 66 | 66 65 72 29 20 22 c0 09 |onal buf|fer) "..|
|00002b90| c2 5c 22 89 1b 85 0d 00 | 0b c2 09 5c 22 29 87 22 |.\".....|...\")."|
|00002ba0| 20 5b 66 69 6e 64 2d 66 | 69 6c 65 2d 6e 61 6d 65 | [find-f|ile-name|
|00002bb0| 2d 68 61 6e 64 6c 65 72 | 20 66 69 6c 65 20 66 69 |-handler| file fi|
|00002bc0| 6c 65 2d 6c 6f 63 61 6c | 2d 63 6f 70 79 20 68 61 |le-local|-copy ha|
|00002bd0| 6e 64 6c 65 72 5d 20 34 | 20 22 5c 0a 43 6f 70 79 |ndler] 4| "\.Copy|
|00002be0| 20 74 68 65 20 66 69 6c | 65 20 46 49 4c 45 20 69 | the fil|e FILE i|
|00002bf0| 6e 74 6f 20 61 20 74 65 | 6d 70 6f 72 61 72 79 20 |nto a te|mporary |
|00002c00| 66 69 6c 65 20 6f 6e 20 | 74 68 69 73 20 6d 61 63 |file on |this mac|
|00002c10| 68 69 6e 65 2e 0a 52 65 | 74 75 72 6e 73 20 74 68 |hine..Re|turns th|
|00002c20| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 6c 6f |e name o|f the lo|
|00002c30| 63 61 6c 20 63 6f 70 79 | 2c 20 6f 72 20 6e 69 6c |cal copy|, or nil|
|00002c40| 2c 20 69 66 20 46 49 4c | 45 20 69 73 20 64 69 72 |, if FIL|E is dir|
|00002c50| 65 63 74 6c 79 0a 61 63 | 63 65 73 73 69 62 6c 65 |ectly.ac|cessible|
|00002c60| 2e 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |."]).(de|falias '|
|00002c70| 66 69 6c 65 2d 74 72 75 | 65 6e 61 6d 65 20 23 5b |file-tru|ename #[|
|00002c80| 28 66 69 6c 65 6e 61 6d | 65 20 26 6f 70 74 69 6f |(filenam|e &optio|
|00002c90| 6e 61 6c 20 63 6f 75 6e | 74 65 72 20 70 72 65 76 |nal coun|ter prev|
|00002ca0| 2d 64 69 72 73 29 20 22 | 08 c1 98 84 16 00 08 c2 |-dirs) "|........|
|00002cb0| c3 4f c1 98 83 5c 22 00 | c4 c5 08 5c 22 83 5c 22 |.O...\".|...\".\"|
|00002cc0| 00 c6 08 21 89 10 c7 98 | 83 5c 22 00 c8 10 0e 09 |...!....|.\".....|
|00002cd0| 84 2b 00 ca 43 16 09 cb | 0e 5c 66 83 36 00 0e 0d |.+..C...|.\f.6...|
|00002ce0| 82 46 00 ce 0e 0d 21 1e | 0f d0 d1 d2 0e 0f 5c 22 |.F....!.|......\"|
|00002cf0| 0e 0f 5c 22 29 1e 0d 1e | 13 0e 5c 66 84 53 00 cb |..\")...|..\f.S..|
|00002d00| 43 16 5c 66 0e 13 84 2e | 01 0e 09 89 40 53 a0 88 |C.\f....|....@S..|
|00002d10| 0e 09 40 c2 57 83 6c 00 | d4 d5 08 5c 22 88 d6 08 |..@.W.l.|...\"...|
|00002d20| d7 5c 22 89 1e 18 83 82 | 00 0e 18 d7 08 5c 22 10 |.\".....|.....\".|
|00002d30| d9 16 13 82 2a 01 da 08 | 21 cb 89 1e 1b 1e 1c 1e |....*...|!.......|
|00002d40| 1d de 0e 1d 21 16 1b 0e | 1d 0e 1b 98 84 d4 00 df |....!...|........|
|00002d50| 0e 1d 0e 5c 66 40 5c 22 | 83 b2 00 df 0e 1d 0e 5c |...\f@\"|.......\|
|00002d60| 66 40 5c 22 41 16 1d 82 | d4 00 0e 1d e0 d7 0e 1b |f@\"A...|........|
|00002d70| 0e 09 0e 5c 66 23 21 1e | 21 1e 5c 22 0e 5c 66 0e |...\f#!.|!.\".\f.|
|00002d80| 5c 22 0e 21 42 0e 5c 66 | 40 42 a0 88 0e 21 16 1d |\".!B.\f|@B...!..|
|00002d90| 2a e3 08 21 e4 9a 83 eb | 00 de da de 0e 1d 21 21 |*..!....|......!!|
|00002da0| 21 10 d9 16 13 82 29 01 | e3 08 21 e5 9a 83 fe 00 |!.....).|..!.....|
|00002db0| de 0e 1d 21 10 d9 16 13 | 82 29 01 0e 1d e3 08 21 |...!....|.).....!|
|00002dc0| 50 10 e6 08 21 89 16 1c | 83 26 01 e7 0e 1c 21 83 |P...!...|.&....!.|
|00002dd0| 1a 01 0e 1c 82 1f 01 0e | 1d 0e 1c 50 10 cb 16 13 |........|...P....|
|00002de0| 82 29 01 d9 16 13 2b 29 | 82 53 00 08 2a 87 22 20 |.)....+)|.S..*." |
|00002df0| 5b 66 69 6c 65 6e 61 6d | 65 20 22 7e 22 20 30 20 |[filenam|e "~" 0 |
|00002e00| 31 20 73 74 72 69 6e 67 | 2d 6d 61 74 63 68 20 22 |1 string|-match "|
|00002e10| 7e 5b 5e 2f 5d 2a 22 20 | 65 78 70 61 6e 64 2d 66 |~[^/]*" |expand-f|
|00002e20| 69 6c 65 2d 6e 61 6d 65 | 20 22 22 20 22 2f 22 20 |ile-name| "" "/" |
|00002e30| 63 6f 75 6e 74 65 72 20 | 31 30 30 20 6e 69 6c 20 |counter |100 nil |
|00002e40| 70 72 65 76 2d 64 69 72 | 73 20 66 69 6c 65 2d 6e |prev-dir|s file-n|
|00002e50| 61 6d 65 2d 68 61 6e 64 | 6c 65 72 2d 61 6c 69 73 |ame-hand|ler-alis|
|00002e60| 74 20 63 6f 70 79 2d 73 | 65 71 75 65 6e 63 65 20 |t copy-s|equence |
|00002e70| 74 65 6d 20 64 65 6c 71 | 20 72 61 73 73 71 20 61 |tem delq| rassq a|
|00002e80| 6e 67 65 2d 66 74 70 2d | 63 6f 6d 70 6c 65 74 69 |nge-ftp-|completi|
|00002e90| 6f 6e 2d 68 6f 6f 6b 2d | 66 75 6e 63 74 69 6f 6e |on-hook-|function|
|00002ea0| 20 64 6f 6e 65 20 65 72 | 72 6f 72 20 22 41 70 70 | done er|ror "App|
|00002eb0| 61 72 65 6e 74 20 63 79 | 63 6c 65 20 6f 66 20 73 |arent cy|cle of s|
|00002ec0| 79 6d 62 6f 6c 69 63 20 | 6c 69 6e 6b 73 20 66 6f |ymbolic |links fo|
|00002ed0| 72 20 25 73 22 20 66 69 | 6e 64 2d 66 69 6c 65 2d |r %s" fi|nd-file-|
|00002ee0| 6e 61 6d 65 2d 68 61 6e | 64 6c 65 72 20 66 69 6c |name-han|dler fil|
|00002ef0| 65 2d 74 72 75 65 6e 61 | 6d 65 20 68 61 6e 64 6c |e-truena|me handl|
|00002f00| 65 72 20 74 20 66 69 6c | 65 2d 6e 61 6d 65 2d 64 |er t fil|e-name-d|
|00002f10| 69 72 65 63 74 6f 72 79 | 20 64 69 72 66 69 6c 65 |irectory| dirfile|
|00002f20| 20 74 61 72 67 65 74 20 | 64 69 72 20 64 69 72 65 | target |dir dire|
|00002f30| 63 74 6f 72 79 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |ctory-fi|le-name |
|00002f40| 61 73 73 6f 63 20 66 69 | 6c 65 2d 6e 61 6d 65 2d |assoc fi|le-name-|
|00002f50| 61 73 2d 64 69 72 65 63 | 74 6f 72 79 20 6e 65 77 |as-direc|tory new|
|00002f60| 20 6f 6c 64 20 66 69 6c | 65 2d 6e 61 6d 65 2d 6e | old fil|e-name-n|
|00002f70| 6f 6e 64 69 72 65 63 74 | 6f 72 79 20 22 2e 2e 22 |ondirect|ory ".."|
|00002f80| 20 22 2e 22 20 66 69 6c | 65 2d 73 79 6d 6c 69 6e | "." fil|e-symlin|
|00002f90| 6b 2d 70 20 66 69 6c 65 | 2d 6e 61 6d 65 2d 61 62 |k-p file|-name-ab|
|00002fa0| 73 6f 6c 75 74 65 2d 70 | 5d 20 37 20 22 5c 0a 52 |solute-p|] 7 "\.R|
|00002fb0| 65 74 75 72 6e 20 74 68 | 65 20 74 72 75 65 6e 61 |eturn th|e truena|
|00002fc0| 6d 65 20 6f 66 20 46 49 | 4c 45 4e 41 4d 45 2c 20 |me of FI|LENAME, |
|00002fd0| 77 68 69 63 68 20 73 68 | 6f 75 6c 64 20 62 65 20 |which sh|ould be |
|00002fe0| 61 62 73 6f 6c 75 74 65 | 2e 0a 54 68 65 20 74 72 |absolute|..The tr|
|00002ff0| 75 65 6e 61 6d 65 20 6f | 66 20 61 20 66 69 6c 65 |uename o|f a file|
|00003000| 20 6e 61 6d 65 20 69 73 | 20 66 6f 75 6e 64 20 62 | name is| found b|
|00003010| 79 20 63 68 61 73 69 6e | 67 20 73 79 6d 62 6f 6c |y chasin|g symbol|
|00003020| 69 63 20 6c 69 6e 6b 73 | 0a 62 6f 74 68 20 61 74 |ic links|.both at|
|00003030| 20 74 68 65 20 6c 65 76 | 65 6c 20 6f 66 20 74 68 | the lev|el of th|
|00003040| 65 20 66 69 6c 65 20 61 | 6e 64 20 61 74 20 74 68 |e file a|nd at th|
|00003050| 65 20 6c 65 76 65 6c 20 | 6f 66 20 74 68 65 20 64 |e level |of the d|
|00003060| 69 72 65 63 74 6f 72 69 | 65 73 0a 63 6f 6e 74 61 |irectori|es.conta|
|00003070| 69 6e 69 6e 67 20 69 74 | 2c 20 75 6e 74 69 6c 20 |ining it|, until |
|00003080| 6e 6f 20 6c 69 6e 6b 73 | 20 61 72 65 20 6c 65 66 |no links| are lef|
|00003090| 74 20 61 74 20 61 6e 79 | 20 6c 65 76 65 6c 2e 0a |t at any| level..|
|000030a0| 0a 54 68 65 20 61 72 67 | 75 6d 65 6e 74 73 20 43 |.The arg|uments C|
|000030b0| 4f 55 4e 54 45 52 20 61 | 6e 64 20 50 52 45 56 2d |OUNTER a|nd PREV-|
|000030c0| 44 49 52 53 20 61 72 65 | 20 75 73 65 64 20 6f 6e |DIRS are| used on|
|000030d0| 6c 79 20 69 6e 20 72 65 | 63 75 72 73 69 76 65 20 |ly in re|cursive |
|000030e0| 63 61 6c 6c 73 2e 0a 44 | 6f 20 6e 6f 74 20 73 70 |calls..D|o not sp|
|000030f0| 65 63 69 66 79 20 74 68 | 65 6d 20 69 6e 20 6f 74 |ecify th|em in ot|
|00003100| 68 65 72 20 63 61 6c 6c | 73 2e 22 5d 29 0a 28 64 |her call|s."]).(d|
|00003110| 65 66 61 6c 69 61 73 20 | 27 66 69 6c 65 2d 63 68 |efalias |'file-ch|
|00003120| 61 73 65 2d 6c 69 6e 6b | 73 20 23 5b 28 66 69 6c |ase-link|s #[(fil|
|00003130| 65 6e 61 6d 65 29 20 22 | c0 c1 5c 6e 1b 1c 1d c6 |ename) "|..\n....|
|00003140| 0b 21 89 15 83 5a 00 5c | 66 c7 55 83 19 00 c8 c9 |.!...Z.\|f.U.....|
|00003150| 5c 6e 5c 22 88 ca cb 0d | 5c 22 83 30 00 0d c7 89 |\n\"....|\".0....|
|00003160| 94 54 4f 0d c7 95 c0 4f | 50 15 82 19 00 ca cc 0d |.TO....O|P.......|
|00003170| 5c 22 83 4d 00 0d cd c0 | 4f 15 ce cf d0 d1 cf d0 |\".M....|O.......|
|00003180| 0b 21 21 21 21 21 21 13 | 82 30 00 d2 0d d0 0b 21 |.!!!!!!.|.0.....!|
|00003190| 5c 22 13 5c 66 53 14 82 | 06 00 0b 2b 87 22 20 5b |\".\fS..|...+." [|
|000031a0| 6e 69 6c 20 31 30 30 20 | 66 69 6c 65 6e 61 6d 65 |nil 100 |filename|
|000031b0| 20 6e 65 77 6e 61 6d 65 | 20 63 6f 75 6e 74 20 74 | newname| count t|
|000031c0| 65 6d 20 66 69 6c 65 2d | 73 79 6d 6c 69 6e 6b 2d |em file-|symlink-|
|000031d0| 70 20 30 20 65 72 72 6f | 72 20 22 41 70 70 61 72 |p 0 erro|r "Appar|
|000031e0| 65 6e 74 20 63 79 63 6c | 65 20 6f 66 20 73 79 6d |ent cycl|e of sym|
|000031f0| 62 6f 6c 69 63 20 6c 69 | 6e 6b 73 20 66 6f 72 20 |bolic li|nks for |
|00003200| 25 73 22 20 73 74 72 69 | 6e 67 2d 6d 61 74 63 68 |%s" stri|ng-match|
|00003210| 20 22 2f 2f 2b 22 20 22 | 5c 5c 60 5c 5c 2e 5c 5c | "//+" "|\\`\\.\\|
|00003220| 2e 2f 22 20 33 20 66 69 | 6c 65 2d 6e 61 6d 65 2d |./" 3 fi|le-name-|
|00003230| 61 73 2d 64 69 72 65 63 | 74 6f 72 79 20 64 69 72 |as-direc|tory dir|
|00003240| 65 63 74 6f 72 79 2d 66 | 69 6c 65 2d 6e 61 6d 65 |ectory-f|ile-name|
|00003250| 20 66 69 6c 65 2d 6e 61 | 6d 65 2d 64 69 72 65 63 | file-na|me-direc|
|00003260| 74 6f 72 79 20 66 69 6c | 65 2d 63 68 61 73 65 2d |tory fil|e-chase-|
|00003270| 6c 69 6e 6b 73 20 65 78 | 70 61 6e 64 2d 66 69 6c |links ex|pand-fil|
|00003280| 65 2d 6e 61 6d 65 5d 20 | 37 20 22 5c 0a 43 68 61 |e-name] |7 "\.Cha|
|00003290| 73 65 20 6c 69 6e 6b 73 | 20 69 6e 20 46 49 4c 45 |se links| in FILE|
|000032a0| 4e 41 4d 45 20 75 6e 74 | 69 6c 20 61 20 6e 61 6d |NAME unt|il a nam|
|000032b0| 65 20 74 68 61 74 20 69 | 73 20 6e 6f 74 20 61 20 |e that i|s not a |
|000032c0| 6c 69 6e 6b 2e 0a 44 6f | 65 73 20 6e 6f 74 20 65 |link..Do|es not e|
|000032d0| 78 61 6d 69 6e 65 20 63 | 6f 6e 74 61 69 6e 69 6e |xamine c|ontainin|
|000032e0| 67 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 66 6f |g direct|ories fo|
|000032f0| 72 20 6c 69 6e 6b 73 2c | 0a 75 6e 6c 69 6b 65 20 |r links,|.unlike |
|00003300| 60 66 69 6c 65 2d 74 72 | 75 65 6e 61 6d 65 27 2e |`file-tr|uename'.|
|00003310| 22 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 73 |"]).(def|alias 's|
|00003320| 77 69 74 63 68 2d 74 6f | 2d 62 75 66 66 65 72 2d |witch-to|-buffer-|
|00003330| 6f 74 68 65 72 2d 77 69 | 6e 64 6f 77 20 23 5b 28 |other-wi|ndow #[(|
|00003340| 62 75 66 66 65 72 29 20 | 22 c0 19 c2 0b c0 5c 22 |buffer) |".....\"|
|00003350| 29 87 22 20 5b 74 20 70 | 6f 70 2d 75 70 2d 77 69 |)." [t p|op-up-wi|
|00003360| 6e 64 6f 77 73 20 70 6f | 70 2d 74 6f 2d 62 75 66 |ndows po|p-to-buf|
|00003370| 66 65 72 20 62 75 66 66 | 65 72 5d 20 33 20 22 5c |fer buff|er] 3 "\|
|00003380| 0a 53 65 6c 65 63 74 20 | 62 75 66 66 65 72 20 42 |.Select |buffer B|
|00003390| 55 46 46 45 52 20 69 6e | 20 61 6e 6f 74 68 65 72 |UFFER in| another|
|000033a0| 20 77 69 6e 64 6f 77 2e | 22 20 22 42 53 77 69 74 | window.|" "BSwit|
|000033b0| 63 68 20 74 6f 20 62 75 | 66 66 65 72 20 69 6e 20 |ch to bu|ffer in |
|000033c0| 6f 74 68 65 72 20 77 69 | 6e 64 6f 77 3a 20 22 5d |other wi|ndow: "]|
|000033d0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 77 69 |).(defal|ias 'swi|
|000033e0| 74 63 68 2d 74 6f 2d 62 | 75 66 66 65 72 2d 6f 74 |tch-to-b|uffer-ot|
|000033f0| 68 65 72 2d 66 72 61 6d | 65 20 23 5b 28 62 75 66 |her-fram|e #[(buf|
|00003400| 66 65 72 29 20 22 c0 19 | c2 0b c0 5c 22 88 c4 c5 |fer) "..|...\"...|
|00003410| c6 20 21 21 29 87 22 20 | 5b 74 20 70 6f 70 2d 75 |. !!)." |[t pop-u|
|00003420| 70 2d 66 72 61 6d 65 73 | 20 70 6f 70 2d 74 6f 2d |p-frames| pop-to-|
|00003430| 62 75 66 66 65 72 20 62 | 75 66 66 65 72 20 72 61 |buffer b|uffer ra|
|00003440| 69 73 65 2d 66 72 61 6d | 65 20 77 69 6e 64 6f 77 |ise-fram|e window|
|00003450| 2d 66 72 61 6d 65 20 73 | 65 6c 65 63 74 65 64 2d |-frame s|elected-|
|00003460| 77 69 6e 64 6f 77 5d 20 | 33 20 22 5c 0a 53 77 69 |window] |3 "\.Swi|
|00003470| 74 63 68 20 74 6f 20 62 | 75 66 66 65 72 20 42 55 |tch to b|uffer BU|
|00003480| 46 46 45 52 20 69 6e 20 | 61 6e 6f 74 68 65 72 20 |FFER in |another |
|00003490| 66 72 61 6d 65 2e 22 20 | 22 42 53 77 69 74 63 68 |frame." |"BSwitch|
|000034a0| 20 74 6f 20 62 75 66 66 | 65 72 20 69 6e 20 6f 74 | to buff|er in ot|
|000034b0| 68 65 72 20 66 72 61 6d | 65 3a 20 22 5d 29 0a 28 |her fram|e: "]).(|
|000034c0| 64 65 66 61 6c 69 61 73 | 20 27 66 69 6e 64 2d 66 |defalias| 'find-f|
|000034d0| 69 6c 65 20 23 5b 28 66 | 69 6c 65 6e 61 6d 65 29 |ile #[(f|ilename)|
|000034e0| 20 22 c0 c1 5c 6e 21 21 | 87 22 20 5b 73 77 69 74 | "..\n!!|." [swit|
|000034f0| 63 68 2d 74 6f 2d 62 75 | 66 66 65 72 20 66 69 6e |ch-to-bu|ffer fin|
|00003500| 64 2d 66 69 6c 65 2d 6e | 6f 73 65 6c 65 63 74 20 |d-file-n|oselect |
|00003510| 66 69 6c 65 6e 61 6d 65 | 5d 20 33 20 22 5c 0a 45 |filename|] 3 "\.E|
|00003520| 64 69 74 20 66 69 6c 65 | 20 46 49 4c 45 4e 41 4d |dit file| FILENAM|
|00003530| 45 2e 0a 53 77 69 74 63 | 68 20 74 6f 20 61 20 62 |E..Switc|h to a b|
|00003540| 75 66 66 65 72 20 76 69 | 73 69 74 69 6e 67 20 66 |uffer vi|siting f|
|00003550| 69 6c 65 20 46 49 4c 45 | 4e 41 4d 45 2c 0a 63 72 |ile FILE|NAME,.cr|
|00003560| 65 61 74 69 6e 67 20 6f | 6e 65 20 69 66 20 6e 6f |eating o|ne if no|
|00003570| 6e 65 20 61 6c 72 65 61 | 64 79 20 65 78 69 73 74 |ne alrea|dy exist|
|00003580| 73 2e 22 20 22 46 46 69 | 6e 64 20 66 69 6c 65 3a |s." "FFi|nd file:|
|00003590| 20 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 | "]).(de|falias '|
|000035a0| 66 69 6e 64 2d 66 69 6c | 65 2d 6f 74 68 65 72 2d |find-fil|e-other-|
|000035b0| 77 69 6e 64 6f 77 20 23 | 5b 28 66 69 6c 65 6e 61 |window #|[(filena|
|000035c0| 6d 65 29 20 22 c0 c1 5c | 6e 21 21 87 22 20 5b 73 |me) "..\|n!!." [s|
|000035d0| 77 69 74 63 68 2d 74 6f | 2d 62 75 66 66 65 72 2d |witch-to|-buffer-|
|000035e0| 6f 74 68 65 72 2d 77 69 | 6e 64 6f 77 20 66 69 6e |other-wi|ndow fin|
|000035f0| 64 2d 66 69 6c 65 2d 6e | 6f 73 65 6c 65 63 74 20 |d-file-n|oselect |
|00003600| 66 69 6c 65 6e 61 6d 65 | 5d 20 33 20 22 5c 0a 45 |filename|] 3 "\.E|
|00003610| 64 69 74 20 66 69 6c 65 | 20 46 49 4c 45 4e 41 4d |dit file| FILENAM|
|00003620| 45 2c 20 69 6e 20 61 6e | 6f 74 68 65 72 20 77 69 |E, in an|other wi|
|00003630| 6e 64 6f 77 2e 0a 4d 61 | 79 20 63 72 65 61 74 65 |ndow..Ma|y create|
|00003640| 20 61 20 6e 65 77 20 77 | 69 6e 64 6f 77 2c 20 6f | a new w|indow, o|
|00003650| 72 20 72 65 75 73 65 20 | 61 6e 20 65 78 69 73 74 |r reuse |an exist|
|00003660| 69 6e 67 20 6f 6e 65 2e | 0a 53 65 65 20 74 68 65 |ing one.|.See the|
|00003670| 20 66 75 6e 63 74 69 6f | 6e 20 60 64 69 73 70 6c | functio|n `displ|
|00003680| 61 79 2d 62 75 66 66 65 | 72 27 2e 22 20 22 46 46 |ay-buffe|r'." "FF|
|00003690| 69 6e 64 20 66 69 6c 65 | 20 69 6e 20 6f 74 68 65 |ind file| in othe|
|000036a0| 72 20 77 69 6e 64 6f 77 | 3a 20 22 5d 29 0a 28 64 |r window|: "]).(d|
|000036b0| 65 66 61 6c 69 61 73 20 | 27 66 69 6e 64 2d 66 69 |efalias |'find-fi|
|000036c0| 6c 65 2d 6f 74 68 65 72 | 2d 66 72 61 6d 65 20 23 |le-other|-frame #|
|000036d0| 5b 28 66 69 6c 65 6e 61 | 6d 65 29 20 22 c0 c1 5c |[(filena|me) "..\|
|000036e0| 6e 21 21 87 22 20 5b 73 | 77 69 74 63 68 2d 74 6f |n!!." [s|witch-to|
|000036f0| 2d 62 75 66 66 65 72 2d | 6f 74 68 65 72 2d 66 72 |-buffer-|other-fr|
|00003700| 61 6d 65 20 66 69 6e 64 | 2d 66 69 6c 65 2d 6e 6f |ame find|-file-no|
|00003710| 73 65 6c 65 63 74 20 66 | 69 6c 65 6e 61 6d 65 5d |select f|ilename]|
|00003720| 20 33 20 22 5c 0a 45 64 | 69 74 20 66 69 6c 65 20 | 3 "\.Ed|it file |
|00003730| 46 49 4c 45 4e 41 4d 45 | 2c 20 69 6e 20 61 6e 6f |FILENAME|, in ano|
|00003740| 74 68 65 72 20 66 72 61 | 6d 65 2e 0a 4d 61 79 20 |ther fra|me..May |
|00003750| 63 72 65 61 74 65 20 61 | 20 6e 65 77 20 66 72 61 |create a| new fra|
|00003760| 6d 65 2c 20 6f 72 20 72 | 65 75 73 65 20 61 6e 20 |me, or r|euse an |
|00003770| 65 78 69 73 74 69 6e 67 | 20 6f 6e 65 2e 0a 53 65 |existing| one..Se|
|00003780| 65 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 60 |e the fu|nction `|
|00003790| 64 69 73 70 6c 61 79 2d | 62 75 66 66 65 72 27 2e |display-|buffer'.|
|000037a0| 22 20 22 46 46 69 6e 64 | 20 66 69 6c 65 20 69 6e |" "FFind| file in|
|000037b0| 20 6f 74 68 65 72 20 66 | 72 61 6d 65 3a 20 22 5d | other f|rame: "]|
|000037c0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 66 69 6e |).(defal|ias 'fin|
|000037d0| 64 2d 66 69 6c 65 2d 72 | 65 61 64 2d 6f 6e 6c 79 |d-file-r|ead-only|
|000037e0| 20 23 5b 28 66 69 6c 65 | 6e 61 6d 65 29 20 22 c0 | #[(file|name) ".|
|000037f0| 09 21 88 c2 13 70 87 22 | 20 5b 66 69 6e 64 2d 66 |.!...p."| [find-f|
|00003800| 69 6c 65 20 66 69 6c 65 | 6e 61 6d 65 20 74 20 62 |ile file|name t b|
|00003810| 75 66 66 65 72 2d 72 65 | 61 64 2d 6f 6e 6c 79 5d |uffer-re|ad-only]|
|00003820| 20 32 20 22 5c 0a 45 64 | 69 74 20 66 69 6c 65 20 | 2 "\.Ed|it file |
|00003830| 46 49 4c 45 4e 41 4d 45 | 20 62 75 74 20 64 6f 6e |FILENAME| but don|
|00003840| 27 74 20 61 6c 6c 6f 77 | 20 63 68 61 6e 67 65 73 |'t allow| changes|
|00003850| 2e 0a 4c 69 6b 65 20 5c | 5c 5b 66 69 6e 64 2d 66 |..Like \|\[find-f|
|00003860| 69 6c 65 5d 20 62 75 74 | 20 6d 61 72 6b 73 20 62 |ile] but| marks b|
|00003870| 75 66 66 65 72 20 61 73 | 20 72 65 61 64 2d 6f 6e |uffer as| read-on|
|00003880| 6c 79 2e 0a 55 73 65 20 | 5c 5c 5b 74 6f 67 67 6c |ly..Use |\\[toggl|
|00003890| 65 2d 72 65 61 64 2d 6f | 6e 6c 79 5d 20 74 6f 20 |e-read-o|nly] to |
|000038a0| 70 65 72 6d 69 74 20 65 | 64 69 74 69 6e 67 2e 22 |permit e|diting."|
|000038b0| 20 22 66 46 69 6e 64 20 | 66 69 6c 65 20 72 65 61 | "fFind |file rea|
|000038c0| 64 2d 6f 6e 6c 79 3a 20 | 22 5d 29 0a 28 64 65 66 |d-only: |"]).(def|
|000038d0| 61 6c 69 61 73 20 27 66 | 69 6e 64 2d 66 69 6c 65 |alias 'f|ind-file|
|000038e0| 2d 72 65 61 64 2d 6f 6e | 6c 79 2d 6f 74 68 65 72 |-read-on|ly-other|
|000038f0| 2d 77 69 6e 64 6f 77 20 | 23 5b 28 66 69 6c 65 6e |-window |#[(filen|
|00003900| 61 6d 65 29 20 22 c0 09 | 21 88 c2 13 70 87 22 20 |ame) "..|!...p." |
|00003910| 5b 66 69 6e 64 2d 66 69 | 6c 65 2d 6f 74 68 65 72 |[find-fi|le-other|
|00003920| 2d 77 69 6e 64 6f 77 20 | 66 69 6c 65 6e 61 6d 65 |-window |filename|
|00003930| 20 74 20 62 75 66 66 65 | 72 2d 72 65 61 64 2d 6f | t buffe|r-read-o|
|00003940| 6e 6c 79 5d 20 32 20 22 | 5c 0a 45 64 69 74 20 66 |nly] 2 "|\.Edit f|
|00003950| 69 6c 65 20 46 49 4c 45 | 4e 41 4d 45 20 69 6e 20 |ile FILE|NAME in |
|00003960| 61 6e 6f 74 68 65 72 20 | 77 69 6e 64 6f 77 20 62 |another |window b|
|00003970| 75 74 20 64 6f 6e 27 74 | 20 61 6c 6c 6f 77 20 63 |ut don't| allow c|
|00003980| 68 61 6e 67 65 73 2e 0a | 4c 69 6b 65 20 5c 5c 5b |hanges..|Like \\[|
|00003990| 66 69 6e 64 2d 66 69 6c | 65 2d 6f 74 68 65 72 2d |find-fil|e-other-|
|000039a0| 77 69 6e 64 6f 77 5d 20 | 62 75 74 20 6d 61 72 6b |window] |but mark|
|000039b0| 73 20 62 75 66 66 65 72 | 20 61 73 20 72 65 61 64 |s buffer| as read|
|000039c0| 2d 6f 6e 6c 79 2e 0a 55 | 73 65 20 5c 5c 5b 74 6f |-only..U|se \\[to|
|000039d0| 67 67 6c 65 2d 72 65 61 | 64 2d 6f 6e 6c 79 5d 20 |ggle-rea|d-only] |
|000039e0| 74 6f 20 70 65 72 6d 69 | 74 20 65 64 69 74 69 6e |to permi|t editin|
|000039f0| 67 2e 22 20 22 66 46 69 | 6e 64 20 66 69 6c 65 20 |g." "fFi|nd file |
|00003a00| 72 65 61 64 2d 6f 6e 6c | 79 20 6f 74 68 65 72 20 |read-onl|y other |
|00003a10| 77 69 6e 64 6f 77 3a 20 | 22 5d 29 0a 28 64 65 66 |window: |"]).(def|
|00003a20| 61 6c 69 61 73 20 27 66 | 69 6e 64 2d 66 69 6c 65 |alias 'f|ind-file|
|00003a30| 2d 72 65 61 64 2d 6f 6e | 6c 79 2d 6f 74 68 65 72 |-read-on|ly-other|
|00003a40| 2d 66 72 61 6d 65 20 23 | 5b 28 66 69 6c 65 6e 61 |-frame #|[(filena|
|00003a50| 6d 65 29 20 22 c0 09 21 | 88 c2 13 70 87 22 20 5b |me) "..!|...p." [|
|00003a60| 66 69 6e 64 2d 66 69 6c | 65 2d 6f 74 68 65 72 2d |find-fil|e-other-|
|00003a70| 66 72 61 6d 65 20 66 69 | 6c 65 6e 61 6d 65 20 74 |frame fi|lename t|
|00003a80| 20 62 75 66 66 65 72 2d | 72 65 61 64 2d 6f 6e 6c | buffer-|read-onl|
|00003a90| 79 5d 20 32 20 22 5c 0a | 45 64 69 74 20 66 69 6c |y] 2 "\.|Edit fil|
|00003aa0| 65 20 46 49 4c 45 4e 41 | 4d 45 20 69 6e 20 61 6e |e FILENA|ME in an|
|00003ab0| 6f 74 68 65 72 20 66 72 | 61 6d 65 20 62 75 74 20 |other fr|ame but |
|00003ac0| 64 6f 6e 27 74 20 61 6c | 6c 6f 77 20 63 68 61 6e |don't al|low chan|
|00003ad0| 67 65 73 2e 0a 4c 69 6b | 65 20 5c 5c 5b 66 69 6e |ges..Lik|e \\[fin|
|00003ae0| 64 2d 66 69 6c 65 2d 6f | 74 68 65 72 2d 66 72 61 |d-file-o|ther-fra|
|00003af0| 6d 65 5d 20 62 75 74 20 | 6d 61 72 6b 73 20 62 75 |me] but |marks bu|
|00003b00| 66 66 65 72 20 61 73 20 | 72 65 61 64 2d 6f 6e 6c |ffer as |read-onl|
|00003b10| 79 2e 0a 55 73 65 20 5c | 5c 5b 74 6f 67 67 6c 65 |y..Use \|\[toggle|
|00003b20| 2d 72 65 61 64 2d 6f 6e | 6c 79 5d 20 74 6f 20 70 |-read-on|ly] to p|
|00003b30| 65 72 6d 69 74 20 65 64 | 69 74 69 6e 67 2e 22 20 |ermit ed|iting." |
|00003b40| 22 66 46 69 6e 64 20 66 | 69 6c 65 20 72 65 61 64 |"fFind f|ile read|
|00003b50| 2d 6f 6e 6c 79 20 6f 74 | 68 65 72 20 66 72 61 6d |-only ot|her fram|
|00003b60| 65 3a 20 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |e: "]).(|defalias|
|00003b70| 20 27 66 69 6e 64 2d 61 | 6c 74 65 72 6e 61 74 65 | 'find-a|lternate|
|00003b80| 2d 66 69 6c 65 20 23 5b | 28 66 69 6c 65 6e 61 6d |-file #[|(filenam|
|00003b90| 65 29 20 22 c0 20 83 13 | 00 c1 c2 c3 c4 20 5c 22 |e) ". ..|..... \"|
|00003ba0| 21 84 13 00 c5 c6 21 88 | 70 0e 07 0e 08 0e 09 c4 |!.....!.|p.......|
|00003bb0| 20 1e 5c 6e 1e 0b 1e 5c | 66 1e 0d 1e 0e cf d0 21 | .\n...\|f......!|
|00003bc0| 88 d1 16 07 d1 16 08 d1 | 16 09 d2 8e d3 20 88 d4 |........|..... ..|
|00003bd0| 0e 15 21 88 29 70 0e 0e | 3d 86 49 00 d6 0e 0e 21 |..!.)p..|=.I....!|
|00003be0| 2d 87 22 20 5b 62 75 66 | 66 65 72 2d 6d 6f 64 69 |-." [buf|fer-modi|
|00003bf0| 66 69 65 64 2d 70 20 79 | 65 73 2d 6f 72 2d 6e 6f |fied-p y|es-or-no|
|00003c00| 2d 70 20 66 6f 72 6d 61 | 74 20 22 42 75 66 66 65 |-p forma|t "Buffe|
|00003c10| 72 20 25 73 20 69 73 20 | 6d 6f 64 69 66 69 65 64 |r %s is |modified|
|00003c20| 3b 20 6b 69 6c 6c 20 61 | 6e 79 77 61 79 3f 20 22 |; kill a|nyway? "|
|00003c30| 20 62 75 66 66 65 72 2d | 6e 61 6d 65 20 65 72 72 | buffer-|name err|
|00003c40| 6f 72 20 22 41 62 6f 72 | 74 65 64 22 20 62 75 66 |or "Abor|ted" buf|
|00003c50| 66 65 72 2d 66 69 6c 65 | 2d 6e 61 6d 65 20 62 75 |fer-file|-name bu|
|00003c60| 66 66 65 72 2d 66 69 6c | 65 2d 6e 75 6d 62 65 72 |ffer-fil|e-number|
|00003c70| 20 62 75 66 66 65 72 2d | 66 69 6c 65 2d 74 72 75 | buffer-|file-tru|
|00003c80| 65 6e 61 6d 65 20 6f 6e | 61 6d 65 20 6f 74 72 75 |ename on|ame otru|
|00003c90| 65 20 6f 6e 75 6d 20 6f | 66 69 6c 65 20 6f 62 75 |e onum o|file obu|
|00003ca0| 66 20 72 65 6e 61 6d 65 | 2d 62 75 66 66 65 72 20 |f rename|-buffer |
|00003cb0| 22 20 2a 2a 6c 6f 73 65 | 2a 2a 22 20 6e 69 6c 20 |" **lose|**" nil |
|00003cc0| 28 28 62 79 74 65 2d 63 | 6f 64 65 20 22 08 70 3d |((byte-c|ode ".p=|
|00003cd0| 83 15 00 09 12 0b 14 0d | 16 06 c7 20 88 c8 0e 09 |........|... ....|
|00003ce0| 21 88 c7 87 22 20 5b 6f | 62 75 66 20 6f 66 69 6c |!..." [o|buf ofil|
|00003cf0| 65 20 62 75 66 66 65 72 | 2d 66 69 6c 65 2d 6e 61 |e buffer|-file-na|
|00003d00| 6d 65 20 6f 6e 75 6d 20 | 62 75 66 66 65 72 2d 66 |me onum |buffer-f|
|00003d10| 69 6c 65 2d 6e 75 6d 62 | 65 72 20 6f 74 72 75 65 |ile-numb|er otrue|
|00003d20| 20 62 75 66 66 65 72 2d | 66 69 6c 65 2d 74 72 75 | buffer-|file-tru|
|00003d30| 65 6e 61 6d 65 20 6c 6f | 63 6b 2d 62 75 66 66 65 |ename lo|ck-buffe|
|00003d40| 72 20 72 65 6e 61 6d 65 | 2d 62 75 66 66 65 72 20 |r rename|-buffer |
|00003d50| 6f 6e 61 6d 65 5d 20 32 | 29 29 20 75 6e 6c 6f 63 |oname] 2|)) unloc|
|00003d60| 6b 2d 62 75 66 66 65 72 | 20 66 69 6e 64 2d 66 69 |k-buffer| find-fi|
|00003d70| 6c 65 20 66 69 6c 65 6e | 61 6d 65 20 6b 69 6c 6c |le filen|ame kill|
|00003d80| 2d 62 75 66 66 65 72 5d | 20 35 20 22 5c 0a 46 69 |-buffer]| 5 "\.Fi|
|00003d90| 6e 64 20 66 69 6c 65 20 | 46 49 4c 45 4e 41 4d 45 |nd file |FILENAME|
|00003da0| 2c 20 73 65 6c 65 63 74 | 20 69 74 73 20 62 75 66 |, select| its buf|
|00003db0| 66 65 72 2c 20 6b 69 6c | 6c 20 70 72 65 76 69 6f |fer, kil|l previo|
|00003dc0| 75 73 20 62 75 66 66 65 | 72 2e 0a 49 66 20 74 68 |us buffe|r..If th|
|00003dd0| 65 20 63 75 72 72 65 6e | 74 20 62 75 66 66 65 72 |e curren|t buffer|
|00003de0| 20 6e 6f 77 20 63 6f 6e | 74 61 69 6e 73 20 61 6e | now con|tains an|
|00003df0| 20 65 6d 70 74 79 20 66 | 69 6c 65 20 74 68 61 74 | empty f|ile that|
|00003e00| 20 79 6f 75 20 6a 75 73 | 74 20 76 69 73 69 74 65 | you jus|t visite|
|00003e10| 64 0a 28 70 72 65 73 75 | 6d 61 62 6c 79 20 62 79 |d.(presu|mably by|
|00003e20| 20 6d 69 73 74 61 6b 65 | 29 2c 20 75 73 65 20 74 | mistake|), use t|
|00003e30| 68 69 73 20 63 6f 6d 6d | 61 6e 64 20 74 6f 20 76 |his comm|and to v|
|00003e40| 69 73 69 74 20 74 68 65 | 20 66 69 6c 65 20 79 6f |isit the| file yo|
|00003e50| 75 20 72 65 61 6c 6c 79 | 20 77 61 6e 74 2e 22 20 |u really| want." |
|00003e60| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 c1 89 1a |(byte-co|de "....|
|00003e70| 1b 89 1c 83 12 00 c5 5c | 66 21 13 c6 5c 66 21 12 |.......\|f!..\f!.|
|00003e80| c7 c8 5c 6e c1 89 0b 25 | 2b 43 87 22 20 5b 62 75 |..\n...%|+C." [bu|
|00003e90| 66 66 65 72 2d 66 69 6c | 65 2d 6e 61 6d 65 20 6e |ffer-fil|e-name n|
|00003ea0| 69 6c 20 66 69 6c 65 2d | 64 69 72 20 66 69 6c 65 |il file-|dir file|
|00003eb0| 2d 6e 61 6d 65 20 66 69 | 6c 65 20 66 69 6c 65 2d |-name fi|le file-|
|00003ec0| 6e 61 6d 65 2d 6e 6f 6e | 64 69 72 65 63 74 6f 72 |name-non|director|
|00003ed0| 79 20 66 69 6c 65 2d 6e | 61 6d 65 2d 64 69 72 65 |y file-n|ame-dire|
|00003ee0| 63 74 6f 72 79 20 72 65 | 61 64 2d 66 69 6c 65 2d |ctory re|ad-file-|
|00003ef0| 6e 61 6d 65 20 22 46 69 | 6e 64 20 61 6c 74 65 72 |name "Fi|nd alter|
|00003f00| 6e 61 74 65 20 66 69 6c | 65 3a 20 22 5d 20 37 29 |nate fil|e: "] 7)|
|00003f10| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 63 72 |]).(defa|lias 'cr|
|00003f20| 65 61 74 65 2d 66 69 6c | 65 2d 62 75 66 66 65 72 |eate-fil|e-buffer|
|00003f30| 20 23 5b 28 66 69 6c 65 | 6e 61 6d 65 29 20 22 c0 | #[(file|name) ".|
|00003f40| 09 21 89 1a c3 98 83 5c | 66 00 09 12 c4 5c 6e 21 |.!.....\|f....\n!|
|00003f50| 29 87 22 20 5b 66 69 6c | 65 2d 6e 61 6d 65 2d 6e |)." [fil|e-name-n|
|00003f60| 6f 6e 64 69 72 65 63 74 | 6f 72 79 20 66 69 6c 65 |ondirect|ory file|
|00003f70| 6e 61 6d 65 20 6c 61 73 | 74 6e 61 6d 65 20 22 22 |name las|tname ""|
|00003f80| 20 67 65 6e 65 72 61 74 | 65 2d 6e 65 77 2d 62 75 | generat|e-new-bu|
|00003f90| 66 66 65 72 5d 20 33 20 | 22 5c 0a 43 72 65 61 74 |ffer] 3 |"\.Creat|
|00003fa0| 65 20 61 20 73 75 69 74 | 61 62 6c 79 20 6e 61 6d |e a suit|ably nam|
|00003fb0| 65 64 20 62 75 66 66 65 | 72 20 66 6f 72 20 76 69 |ed buffe|r for vi|
|00003fc0| 73 69 74 69 6e 67 20 46 | 49 4c 45 4e 41 4d 45 2c |siting F|ILENAME,|
|00003fd0| 20 61 6e 64 20 72 65 74 | 75 72 6e 20 69 74 2e 0a | and ret|urn it..|
|00003fe0| 46 49 4c 45 4e 41 4d 45 | 20 28 73 61 6e 73 20 64 |FILENAME| (sans d|
|00003ff0| 69 72 65 63 74 6f 72 79 | 29 20 69 73 20 75 73 65 |irectory|) is use|
|00004000| 64 20 75 6e 63 68 61 6e | 67 65 64 20 69 66 20 74 |d unchan|ged if t|
|00004010| 68 61 74 20 6e 61 6d 65 | 20 69 73 20 66 72 65 65 |hat name| is free|
|00004020| 3b 0a 6f 74 68 65 72 77 | 69 73 65 20 61 20 73 74 |;.otherw|ise a st|
|00004030| 72 69 6e 67 20 3c 32 3e | 20 6f 72 20 3c 33 3e 20 |ring <2>| or <3> |
|00004040| 6f 72 20 2e 2e 2e 20 69 | 73 20 61 70 70 65 6e 64 |or ... i|s append|
|00004050| 65 64 20 74 6f 20 67 65 | 74 20 61 6e 20 75 6e 75 |ed to ge|t an unu|
|00004060| 73 65 64 20 6e 61 6d 65 | 2e 22 5d 29 0a 28 64 65 |sed name|."]).(de|
|00004070| 66 61 6c 69 61 73 20 27 | 67 65 6e 65 72 61 74 65 |falias '|generate|
|00004080| 2d 6e 65 77 2d 62 75 66 | 66 65 72 20 23 5b 28 6e |-new-buf|fer #[(n|
|00004090| 61 6d 65 29 20 22 c0 c1 | 5c 6e 21 21 87 22 20 5b |ame) "..|\n!!." [|
|000040a0| 67 65 74 2d 62 75 66 66 | 65 72 2d 63 72 65 61 74 |get-buff|er-creat|
|000040b0| 65 20 67 65 6e 65 72 61 | 74 65 2d 6e 65 77 2d 62 |e genera|te-new-b|
|000040c0| 75 66 66 65 72 2d 6e 61 | 6d 65 20 6e 61 6d 65 5d |uffer-na|me name]|
|000040d0| 20 33 20 22 5c 0a 43 72 | 65 61 74 65 20 61 6e 64 | 3 "\.Cr|eate and|
|000040e0| 20 72 65 74 75 72 6e 20 | 61 20 62 75 66 66 65 72 | return |a buffer|
|000040f0| 20 77 69 74 68 20 61 20 | 6e 61 6d 65 20 62 61 73 | with a |name bas|
|00004100| 65 64 20 6f 6e 20 4e 41 | 4d 45 2e 0a 43 68 6f 6f |ed on NA|ME..Choo|
|00004110| 73 65 20 74 68 65 20 62 | 75 66 66 65 72 27 73 20 |se the b|uffer's |
|00004120| 6e 61 6d 65 20 75 73 69 | 6e 67 20 60 67 65 6e 65 |name usi|ng `gene|
|00004130| 72 61 74 65 2d 6e 65 77 | 2d 62 75 66 66 65 72 2d |rate-new|-buffer-|
|00004140| 6e 61 6d 65 27 2e 22 5d | 29 0a 28 64 65 66 63 6f |name'."]|).(defco|
|00004150| 6e 73 74 20 61 75 74 6f | 6d 6f 75 6e 74 2d 64 69 |nst auto|mount-di|
|00004160| 72 2d 70 72 65 66 69 78 | 20 22 5e 2f 74 6d 70 5f |r-prefix| "^/tmp_|
|00004170| 6d 6e 74 2f 22 20 22 5c | 0a 52 65 67 65 78 70 20 |mnt/" "\|.Regexp |
|00004180| 74 6f 20 6d 61 74 63 68 | 20 74 68 65 20 61 75 74 |to match| the aut|
|00004190| 6f 6d 6f 75 6e 74 65 72 | 20 70 72 65 66 69 78 20 |omounter| prefix |
|000041a0| 69 6e 20 61 20 64 69 72 | 65 63 74 6f 72 79 20 6e |in a dir|ectory n|
|000041b0| 61 6d 65 2e 22 29 0a 28 | 64 65 66 76 61 72 20 61 |ame.").(|defvar a|
|000041c0| 62 62 72 65 76 69 61 74 | 65 64 2d 68 6f 6d 65 2d |bbreviat|ed-home-|
|000041d0| 64 69 72 20 6e 69 6c 20 | 22 5c 0a 54 68 65 20 75 |dir nil |"\.The u|
|000041e0| 73 65 72 27 73 20 68 6f | 6d 65 64 69 72 20 61 62 |ser's ho|medir ab|
|000041f0| 62 72 65 76 69 61 74 65 | 64 20 61 63 63 6f 72 64 |breviate|d accord|
|00004200| 69 6e 67 20 74 6f 20 60 | 64 69 72 65 63 74 6f 72 |ing to `|director|
|00004210| 79 2d 61 62 62 72 65 76 | 2d 6c 69 73 74 27 2e 22 |y-abbrev|-list'."|
|00004220| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 61 62 62 |).(defal|ias 'abb|
|00004230| 72 65 76 69 61 74 65 2d | 66 69 6c 65 2d 6e 61 6d |reviate-|file-nam|
|00004240| 65 20 23 5b 28 66 69 6c | 65 6e 61 6d 65 29 20 22 |e #[(fil|ename) "|
|00004250| c0 09 5c 6e 5c 22 83 1b | 00 c3 c4 5c 6e c5 95 53 |..\n\"..|...\n..S|
|00004260| c6 4f 21 21 83 1b 00 5c | 6e c5 95 53 c6 4f 12 0e |.O!!...\|n..S.O..|
|00004270| 07 89 1e 08 83 41 00 c0 | 0e 08 40 40 5c 6e 5c 22 |.....A..|..@@\n\"|
|00004280| 83 38 00 0e 08 40 41 5c | 6e c5 95 c6 4f 50 12 0e |.8...@A\|n...OP..|
|00004290| 08 41 89 16 08 84 23 00 | 0e 09 84 54 00 ca 1e 09 |.A....#.|...T....|
|000042a0| cb cc cd ce 21 21 cf 51 | 29 16 09 c0 0e 09 5c 6e |....!!.Q|).....\n|
|000042b0| 5c 22 83 8e 00 c5 95 d0 | 55 83 6b 00 5c 6e c5 48 |\"......|U.k.\n.H|
|000042c0| d1 55 84 8e 00 0e 12 d3 | 3d 83 80 00 d4 20 1e 15 |.U......|=.... ..|
|000042d0| d6 8e c0 d7 5c 6e 5c 22 | 2a 84 8e 00 ce 5c 6e d0 |....\n\"|*....\n.|
|000042e0| 94 d0 95 4f 5c 6e c5 95 | c6 4f 51 12 5c 6e 29 87 |...O\n..|.OQ.\n).|
|000042f0| 22 20 5b 73 74 72 69 6e | 67 2d 6d 61 74 63 68 20 |" [strin|g-match |
|00004300| 61 75 74 6f 6d 6f 75 6e | 74 2d 64 69 72 2d 70 72 |automoun|t-dir-pr|
|00004310| 65 66 69 78 20 66 69 6c | 65 6e 61 6d 65 20 66 69 |efix fil|ename fi|
|00004320| 6c 65 2d 65 78 69 73 74 | 73 2d 70 20 66 69 6c 65 |le-exist|s-p file|
|00004330| 2d 6e 61 6d 65 2d 64 69 | 72 65 63 74 6f 72 79 20 |-name-di|rectory |
|00004340| 30 20 6e 69 6c 20 64 69 | 72 65 63 74 6f 72 79 2d |0 nil di|rectory-|
|00004350| 61 62 62 72 65 76 2d 61 | 6c 69 73 74 20 74 61 69 |abbrev-a|list tai|
|00004360| 6c 20 61 62 62 72 65 76 | 69 61 74 65 64 2d 68 6f |l abbrev|iated-ho|
|00004370| 6d 65 2d 64 69 72 20 22 | 24 66 6f 6f 22 20 22 5e |me-dir "|$foo" "^|
|00004380| 22 20 61 62 62 72 65 76 | 69 61 74 65 2d 66 69 6c |" abbrev|iate-fil|
|00004390| 65 2d 6e 61 6d 65 20 65 | 78 70 61 6e 64 2d 66 69 |e-name e|xpand-fi|
|000043a0| 6c 65 2d 6e 61 6d 65 20 | 22 7e 22 20 22 5c 5c 28 |le-name |"~" "\\(|
|000043b0| 2f 5c 5c 7c 24 5c 5c 29 | 22 20 31 20 34 37 20 73 |/\\|$\\)|" 1 47 s|
|000043c0| 79 73 74 65 6d 2d 74 79 | 70 65 20 6d 73 2d 64 6f |ystem-ty|pe ms-do|
|000043d0| 73 20 6d 61 74 63 68 2d | 64 61 74 61 20 6d 61 74 |s match-|data mat|
|000043e0| 63 68 2d 64 61 74 61 20 | 28 28 73 74 6f 72 65 2d |ch-data |((store-|
|000043f0| 6d 61 74 63 68 2d 64 61 | 74 61 20 6d 61 74 63 68 |match-da|ta match|
|00004400| 2d 64 61 74 61 29 29 20 | 22 5e 5b 61 2d 7a 41 2d |-data)) |"^[a-zA-|
|00004410| 5a 5d 3a 2f 24 22 5d 20 | 36 20 22 5c 0a 52 65 74 |Z]:/$"] |6 "\.Ret|
|00004420| 75 72 6e 20 61 20 76 65 | 72 73 69 6f 6e 20 6f 66 |urn a ve|rsion of|
|00004430| 20 46 49 4c 45 4e 41 4d | 45 20 73 68 6f 72 74 65 | FILENAM|E shorte|
|00004440| 6e 65 64 20 75 73 69 6e | 67 20 60 64 69 72 65 63 |ned usin|g `direc|
|00004450| 74 6f 72 79 2d 61 62 62 | 72 65 76 2d 61 6c 69 73 |tory-abb|rev-alis|
|00004460| 74 27 2e 0a 54 68 69 73 | 20 61 6c 73 6f 20 73 75 |t'..This| also su|
|00004470| 62 73 74 69 74 75 74 65 | 73 20 5c 22 7e 5c 22 20 |bstitute|s \"~\" |
|00004480| 66 6f 72 20 74 68 65 20 | 75 73 65 72 27 73 20 68 |for the |user's h|
|00004490| 6f 6d 65 20 64 69 72 65 | 63 74 6f 72 79 2e 0a 54 |ome dire|ctory..T|
|000044a0| 79 70 65 20 5c 5c 5b 64 | 65 73 63 72 69 62 65 2d |ype \\[d|escribe-|
|000044b0| 76 61 72 69 61 62 6c 65 | 5d 20 64 69 72 65 63 74 |variable|] direct|
|000044c0| 6f 72 79 2d 61 62 62 72 | 65 76 2d 61 6c 69 73 74 |ory-abbr|ev-alist|
|000044d0| 20 52 45 54 20 66 6f 72 | 20 6d 6f 72 65 20 69 6e | RET for| more in|
|000044e0| 66 6f 72 6d 61 74 69 6f | 6e 2e 22 5d 29 0a 28 64 |formatio|n."]).(d|
|000044f0| 65 66 76 61 72 20 66 69 | 6e 64 2d 66 69 6c 65 2d |efvar fi|nd-file-|
|00004500| 6e 6f 74 2d 74 72 75 65 | 2d 64 69 72 6e 61 6d 65 |not-true|-dirname|
|00004510| 2d 6c 69 73 74 20 6e 69 | 6c 20 22 5c 0a 2a 4c 69 |-list ni|l "\.*Li|
|00004520| 73 74 20 6f 66 20 6c 6f | 67 69 63 61 6c 20 6e 61 |st of lo|gical na|
|00004530| 6d 65 73 20 66 6f 72 20 | 77 68 69 63 68 20 76 69 |mes for |which vi|
|00004540| 73 69 74 69 6e 67 20 73 | 68 6f 75 6c 64 6e 27 74 |siting s|houldn't|
|00004550| 20 73 61 76 65 20 74 68 | 65 20 74 72 75 65 20 64 | save th|e true d|
|00004560| 69 72 6e 61 6d 65 2e 0a | 4f 6e 20 56 4d 53 2c 20 |irname..|On VMS, |
|00004570| 77 68 65 6e 20 79 6f 75 | 20 76 69 73 69 74 20 61 |when you| visit a|
|00004580| 20 66 69 6c 65 20 75 73 | 69 6e 67 20 61 20 6c 6f | file us|ing a lo|
|00004590| 67 69 63 61 6c 20 6e 61 | 6d 65 20 74 68 61 74 20 |gical na|me that |
|000045a0| 73 65 61 72 63 68 65 73 | 20 61 20 70 61 74 68 2c |searches| a path,|
|000045b0| 0a 79 6f 75 20 6d 61 79 | 20 6f 72 20 6d 61 79 20 |.you may| or may |
|000045c0| 6e 6f 74 20 77 61 6e 74 | 20 74 68 65 20 76 69 73 |not want| the vis|
|000045d0| 69 74 65 64 20 66 69 6c | 65 20 6e 61 6d 65 20 74 |ited fil|e name t|
|000045e0| 6f 20 72 65 63 6f 72 64 | 20 74 68 65 20 73 70 65 |o record| the spe|
|000045f0| 63 69 66 69 63 0a 64 69 | 72 65 63 74 6f 72 79 20 |cific.di|rectory |
|00004600| 77 68 65 72 65 20 74 68 | 65 20 66 69 6c 65 20 77 |where th|e file w|
|00004610| 61 73 20 66 6f 75 6e 64 | 2e 20 20 49 66 20 79 6f |as found|. If yo|
|00004620| 75 20 2a 64 6f 20 6e 6f | 74 2a 20 77 61 6e 74 20 |u *do no|t* want |
|00004630| 74 68 61 74 2c 20 61 64 | 64 20 74 68 65 20 6c 6f |that, ad|d the lo|
|00004640| 67 69 63 61 6c 0a 6e 61 | 6d 65 20 74 6f 20 74 68 |gical.na|me to th|
|00004650| 69 73 20 6c 69 73 74 20 | 61 73 20 61 20 73 74 72 |is list |as a str|
|00004660| 69 6e 67 2e 22 29 0a 28 | 64 65 66 61 6c 69 61 73 |ing.").(|defalias|
|00004670| 20 27 66 69 6e 64 2d 62 | 75 66 66 65 72 2d 76 69 | 'find-b|uffer-vi|
|00004680| 73 69 74 69 6e 67 20 23 | 5b 28 66 69 6c 65 6e 61 |siting #|[(filena|
|00004690| 6d 65 29 20 22 c0 09 21 | c2 c3 09 21 21 1c 89 1d |me) "..!|...!!...|
|000046a0| 86 98 00 c6 20 c7 1e 08 | 1e 09 0e 08 84 3f 00 0e |.... ...|.....?..|
|000046b0| 09 83 3f 00 8a 0e 09 40 | 71 88 0e 5c 6e 83 36 00 |..?....@|q..\n.6.|
|000046c0| 0e 0b 5c 66 98 83 36 00 | 0e 09 40 16 08 29 0e 09 |..\f..6.|..@..)..|
|000046d0| 41 16 09 82 15 00 0e 08 | 2a 86 98 00 cc cd 5c 66 |A.......|*.....\f|
|000046e0| 21 9b c6 20 c7 1e 08 1e | 09 89 1e 0e 83 95 00 0e |!.. ....|........|
|000046f0| 08 84 95 00 0e 09 83 95 | 00 8a 0e 09 40 71 88 0e |........|....@q..|
|00004700| 5c 6e 83 8c 00 0e 0f 0e | 0e 9a 83 8c 00 d0 0e 5c |\n......|.......\|
|00004710| 6e 21 83 8c 00 cc cd 0e | 5c 6e 21 9b 0e 0e 9a 83 |n!......|\n!.....|
|00004720| 8c 00 0e 09 40 16 08 29 | 0e 09 41 16 09 82 57 00 |....@..)|..A...W.|
|00004730| 0e 08 2b 2a 87 22 20 5b | 67 65 74 2d 66 69 6c 65 |..+*." [|get-file|
|00004740| 2d 62 75 66 66 65 72 20 | 66 69 6c 65 6e 61 6d 65 |-buffer |filename|
|00004750| 20 61 62 62 72 65 76 69 | 61 74 65 2d 66 69 6c 65 | abbrevi|ate-file|
|00004760| 2d 6e 61 6d 65 20 66 69 | 6c 65 2d 74 72 75 65 6e |-name fi|le-truen|
|00004770| 61 6d 65 20 74 72 75 65 | 6e 61 6d 65 20 62 75 66 |ame true|name buf|
|00004780| 20 62 75 66 66 65 72 2d | 6c 69 73 74 20 6e 69 6c | buffer-|list nil|
|00004790| 20 66 6f 75 6e 64 20 6c | 69 73 74 20 62 75 66 66 | found l|ist buff|
|000047a0| 65 72 2d 66 69 6c 65 2d | 6e 61 6d 65 20 62 75 66 |er-file-|name buf|
|000047b0| 66 65 72 2d 66 69 6c 65 | 2d 74 72 75 65 6e 61 6d |fer-file|-truenam|
|000047c0| 65 20 31 30 20 66 69 6c | 65 2d 61 74 74 72 69 62 |e 10 fil|e-attrib|
|000047d0| 75 74 65 73 20 6e 75 6d | 62 65 72 20 62 75 66 66 |utes num|ber buff|
|000047e0| 65 72 2d 66 69 6c 65 2d | 6e 75 6d 62 65 72 20 66 |er-file-|number f|
|000047f0| 69 6c 65 2d 65 78 69 73 | 74 73 2d 70 5d 20 35 20 |ile-exis|ts-p] 5 |
|00004800| 22 5c 0a 52 65 74 75 72 | 6e 20 74 68 65 20 62 75 |"\.Retur|n the bu|
|00004810| 66 66 65 72 20 76 69 73 | 69 74 69 6e 67 20 66 69 |ffer vis|iting fi|
|00004820| 6c 65 20 46 49 4c 45 4e | 41 4d 45 20 28 61 20 73 |le FILEN|AME (a s|
|00004830| 74 72 69 6e 67 29 2e 0a | 54 68 69 73 20 69 73 20 |tring)..|This is |
|00004840| 6c 69 6b 65 20 60 67 65 | 74 2d 66 69 6c 65 2d 62 |like `ge|t-file-b|
|00004850| 75 66 66 65 72 27 2c 20 | 65 78 63 65 70 74 20 74 |uffer', |except t|
|00004860| 68 61 74 20 69 74 20 63 | 68 65 63 6b 73 20 66 6f |hat it c|hecks fo|
|00004870| 72 20 61 6e 79 20 62 75 | 66 66 65 72 0a 76 69 73 |r any bu|ffer.vis|
|00004880| 69 74 69 6e 67 20 74 68 | 65 20 73 61 6d 65 20 66 |iting th|e same f|
|00004890| 69 6c 65 2c 20 70 6f 73 | 73 69 62 6c 79 20 75 6e |ile, pos|sibly un|
|000048a0| 64 65 72 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 |der a di|fferent |
|000048b0| 6e 61 6d 65 2e 0a 49 66 | 20 74 68 65 72 65 20 69 |name..If| there i|
|000048c0| 73 20 6e 6f 20 73 75 63 | 68 20 6c 69 76 65 20 62 |s no suc|h live b|
|000048d0| 75 66 66 65 72 2c 20 72 | 65 74 75 72 6e 20 6e 69 |uffer, r|eturn ni|
|000048e0| 6c 2e 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |l."]).(d|efalias |
|000048f0| 27 66 69 6e 64 2d 66 69 | 6c 65 2d 6e 6f 73 65 6c |'find-fi|le-nosel|
|00004900| 65 63 74 20 23 5b 28 66 | 69 6c 65 6e 61 6d 65 20 |ect #[(f|ilename |
|00004910| 26 6f 70 74 69 6f 6e 61 | 6c 20 6e 6f 77 61 72 6e |&optiona|l nowarn|
|00004920| 29 20 22 c0 c1 5c 6e 21 | 21 12 c3 5c 6e 21 83 19 |) "..\n!|!..\n!..|
|00004930| 00 5c 66 83 14 00 c5 5c | 6e 21 87 c6 c7 5c 6e 5c |.\f....\|n!...\n\|
|00004940| 22 87 c8 5c 6e 21 1e 09 | c0 ca 5c 6e 21 21 1e 0b |"..\n!..|..\n!!..|
|00004950| cc cd 0e 0b 21 9b 1e 0e | 0e 09 3f 85 36 00 cf 5c |....!...|..?.6..\|
|00004960| 6e 21 1e 10 d1 1e 06 0e | 10 83 65 00 0e 12 84 57 |n!......|..e....W|
|00004970| 00 5c 6e d3 0e 10 21 98 | 84 57 00 d4 d5 5c 6e d3 |.\n...!.|.W...\n.|
|00004980| 0e 10 21 23 88 0e 16 84 | 61 00 0e 17 83 65 00 0e |..!#....|a....e..|
|00004990| 10 16 09 0e 09 83 a8 00 | 0e 12 84 14 01 d8 0e 09 |........|........|
|000049a0| 21 84 14 01 d9 5c 6e 21 | 84 84 00 c6 da 5c 6e 5c |!....\n!|.....\n\|
|000049b0| 22 88 82 14 01 db dc dd | 0e 09 21 83 91 00 de 82 |".......|..!.....|
|000049c0| 92 00 df e0 5c 6e 21 5c | 22 21 83 14 01 8a 0e 09 |....\n!\|"!......|
|000049d0| 71 88 e1 e2 89 5c 22 88 | 29 82 14 01 8a e3 5c 6e |q....\".|).....\n|
|000049e0| 21 89 16 09 71 88 e4 20 | 88 d1 e5 e6 8f 88 0e 0b |!...q.. |........|
|000049f0| 16 27 0e 0e 16 28 0e 29 | ea 3d 83 ea 00 d1 1e 2b |.'...(.)|.=.....+|
|00004a00| ec ed ee 5c 6e 21 5c 22 | 83 dd 00 ee 5c 6e 21 ef |...\n!\"|....\n!.|
|00004a10| 89 94 4f 16 2b 0e 2b 0e | 30 9d 29 84 ea 00 0e 27 |..O.+.+.|0.)....'|
|00004a20| 16 13 0e 17 83 f7 00 c1 | 0e 27 21 89 12 16 13 ee |........|.'!.....|
|00004a30| 5c 6e 21 16 31 0e 32 0e | 13 21 84 0b 01 f3 f4 21 |\n!.1.2.|.!.....!|
|00004a40| 88 e2 16 34 f5 0e 06 0e | 12 3f 5c 22 88 29 0e 09 |...4....|.?\".)..|
|00004a50| 2d 87 22 20 5b 61 62 62 | 72 65 76 69 61 74 65 2d |-." [abb|reviate-|
|00004a60| 66 69 6c 65 2d 6e 61 6d | 65 20 65 78 70 61 6e 64 |file-nam|e expand|
|00004a70| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 66 69 6c 65 6e |-file-na|me filen|
|00004a80| 61 6d 65 20 66 69 6c 65 | 2d 64 69 72 65 63 74 6f |ame file|-directo|
|00004a90| 72 79 2d 70 20 66 69 6e | 64 2d 66 69 6c 65 2d 72 |ry-p fin|d-file-r|
|00004aa0| 75 6e 2d 64 69 72 65 64 | 20 64 69 72 65 64 2d 6e |un-dired| dired-n|
|00004ab0| 6f 73 65 6c 65 63 74 20 | 65 72 72 6f 72 20 22 25 |oselect |error "%|
|00004ac0| 73 20 69 73 20 61 20 64 | 69 72 65 63 74 6f 72 79 |s is a d|irectory|
|00004ad0| 2e 22 20 67 65 74 2d 66 | 69 6c 65 2d 62 75 66 66 |." get-f|ile-buff|
|00004ae0| 65 72 20 62 75 66 20 66 | 69 6c 65 2d 74 72 75 65 |er buf f|ile-true|
|00004af0| 6e 61 6d 65 20 74 72 75 | 65 6e 61 6d 65 20 31 30 |name tru|ename 10|
|00004b00| 20 66 69 6c 65 2d 61 74 | 74 72 69 62 75 74 65 73 | file-at|tributes|
|00004b10| 20 6e 75 6d 62 65 72 20 | 66 69 6e 64 2d 62 75 66 | number |find-buf|
|00004b20| 66 65 72 2d 76 69 73 69 | 74 69 6e 67 20 6f 74 68 |fer-visi|ting oth|
|00004b30| 65 72 20 6e 69 6c 20 6e | 6f 77 61 72 6e 20 62 75 |er nil n|owarn bu|
|00004b40| 66 66 65 72 2d 66 69 6c | 65 2d 6e 61 6d 65 20 6d |ffer-fil|e-name m|
|00004b50| 65 73 73 61 67 65 20 22 | 25 73 20 61 6e 64 20 25 |essage "|%s and %|
|00004b60| 73 20 61 72 65 20 74 68 | 65 20 73 61 6d 65 20 66 |s are th|e same f|
|00004b70| 69 6c 65 22 20 66 69 6e | 64 2d 66 69 6c 65 2d 65 |ile" fin|d-file-e|
|00004b80| 78 69 73 74 69 6e 67 2d | 6f 74 68 65 72 2d 6e 61 |xisting-|other-na|
|00004b90| 6d 65 20 66 69 6e 64 2d | 66 69 6c 65 2d 76 69 73 |me find-|file-vis|
|00004ba0| 69 74 2d 74 72 75 65 6e | 61 6d 65 20 76 65 72 69 |it-truen|ame veri|
|00004bb0| 66 79 2d 76 69 73 69 74 | 65 64 2d 66 69 6c 65 2d |fy-visit|ed-file-|
|00004bc0| 6d 6f 64 74 69 6d 65 20 | 66 69 6c 65 2d 65 78 69 |modtime |file-exi|
|00004bd0| 73 74 73 2d 70 20 22 46 | 69 6c 65 20 25 73 20 6e |sts-p "F|ile %s n|
|00004be0| 6f 20 6c 6f 6e 67 65 72 | 20 65 78 69 73 74 73 21 |o longer| exists!|
|00004bf0| 22 20 79 65 73 2d 6f 72 | 2d 6e 6f 2d 70 20 66 6f |" yes-or|-no-p fo|
|00004c00| 72 6d 61 74 20 62 75 66 | 66 65 72 2d 6d 6f 64 69 |rmat buf|fer-modi|
|00004c10| 66 69 65 64 2d 70 20 22 | 46 69 6c 65 20 25 73 20 |fied-p "|File %s |
|00004c20| 63 68 61 6e 67 65 64 20 | 6f 6e 20 64 69 73 6b 2e |changed |on disk.|
|00004c30| 20 20 44 69 73 63 61 72 | 64 20 79 6f 75 72 20 65 | Discar|d your e|
|00004c40| 64 69 74 73 3f 20 22 20 | 22 46 69 6c 65 20 25 73 |dits? " |"File %s|
|00004c50| 20 63 68 61 6e 67 65 64 | 20 6f 6e 20 64 69 73 6b | changed| on disk|
|00004c60| 2e 20 20 52 65 72 65 61 | 64 20 66 72 6f 6d 20 64 |. Rerea|d from d|
|00004c70| 69 73 6b 3f 20 22 20 66 | 69 6c 65 2d 6e 61 6d 65 |isk? " f|ile-name|
|00004c80| 2d 6e 6f 6e 64 69 72 65 | 63 74 6f 72 79 20 72 65 |-nondire|ctory re|
|00004c90| 76 65 72 74 2d 62 75 66 | 66 65 72 20 74 20 63 72 |vert-buf|fer t cr|
|00004ca0| 65 61 74 65 2d 66 69 6c | 65 2d 62 75 66 66 65 72 |eate-fil|e-buffer|
|00004cb0| 20 65 72 61 73 65 2d 62 | 75 66 66 65 72 20 28 69 | erase-b|uffer (i|
|00004cc0| 6e 73 65 72 74 2d 66 69 | 6c 65 2d 63 6f 6e 74 65 |nsert-fi|le-conte|
|00004cd0| 6e 74 73 20 66 69 6c 65 | 6e 61 6d 65 20 74 29 20 |nts file|name t) |
|00004ce0| 28 28 66 69 6c 65 2d 65 | 72 72 6f 72 20 28 62 79 |((file-e|rror (by|
|00004cf0| 74 65 2d 63 6f 64 65 20 | 22 c0 11 5c 6e 89 1b 83 |te-code |"..\n...|
|00004d00| 1a 00 0b 40 20 83 13 00 | c4 11 82 1a 00 0b 41 89 |...@ ...|......A.|
|00004d10| 13 84 08 00 29 c4 87 22 | 20 5b 74 20 65 72 72 6f |....).."| [t erro|
|00004d20| 72 20 66 69 6e 64 2d 66 | 69 6c 65 2d 6e 6f 74 2d |r find-f|ile-not-|
|00004d30| 66 6f 75 6e 64 2d 68 6f | 6f 6b 73 20 68 6f 6f 6b |found-ho|oks hook|
|00004d40| 73 20 6e 69 6c 5d 20 32 | 29 29 29 20 62 75 66 66 |s nil] 2|))) buff|
|00004d50| 65 72 2d 66 69 6c 65 2d | 74 72 75 65 6e 61 6d 65 |er-file-|truename|
|00004d60| 20 62 75 66 66 65 72 2d | 66 69 6c 65 2d 6e 75 6d | buffer-|file-num|
|00004d70| 62 65 72 20 73 79 73 74 | 65 6d 2d 74 79 70 65 20 |ber syst|em-type |
|00004d80| 76 61 78 2d 76 6d 73 20 | 6c 6f 67 69 63 61 6c 20 |vax-vms |logical |
|00004d90| 73 74 72 69 6e 67 2d 6d | 61 74 63 68 20 22 3a 22 |string-m|atch ":"|
|00004da0| 20 66 69 6c 65 2d 6e 61 | 6d 65 2d 64 69 72 65 63 | file-na|me-direc|
|00004db0| 74 6f 72 79 20 30 20 66 | 69 6e 64 2d 66 69 6c 65 |tory 0 f|ind-file|
|00004dc0| 2d 6e 6f 74 2d 74 72 75 | 65 2d 64 69 72 6e 61 6d |-not-tru|e-dirnam|
|00004dd0| 65 2d 6c 69 73 74 20 64 | 65 66 61 75 6c 74 2d 64 |e-list d|efault-d|
|00004de0| 69 72 65 63 74 6f 72 79 | 20 62 61 63 6b 75 70 2d |irectory| backup-|
|00004df0| 65 6e 61 62 6c 65 2d 70 | 72 65 64 69 63 61 74 65 |enable-p|redicate|
|00004e00| 20 6d 61 6b 65 2d 6c 6f | 63 61 6c 2d 76 61 72 69 | make-lo|cal-vari|
|00004e10| 61 62 6c 65 20 62 61 63 | 6b 75 70 2d 69 6e 68 69 |able bac|kup-inhi|
|00004e20| 62 69 74 65 64 20 61 66 | 74 65 72 2d 66 69 6e 64 |bited af|ter-find|
|00004e30| 2d 66 69 6c 65 5d 20 36 | 20 22 5c 0a 52 65 61 64 |-file] 6| "\.Read|
|00004e40| 20 66 69 6c 65 20 46 49 | 4c 45 4e 41 4d 45 20 69 | file FI|LENAME i|
|00004e50| 6e 74 6f 20 61 20 62 75 | 66 66 65 72 20 61 6e 64 |nto a bu|ffer and|
|00004e60| 20 72 65 74 75 72 6e 20 | 74 68 65 20 62 75 66 66 | return |the buff|
|00004e70| 65 72 2e 0a 49 66 20 61 | 20 62 75 66 66 65 72 20 |er..If a| buffer |
|00004e80| 65 78 69 73 74 73 20 76 | 69 73 69 74 69 6e 67 20 |exists v|isiting |
|00004e90| 46 49 4c 45 4e 41 4d 45 | 2c 20 72 65 74 75 72 6e |FILENAME|, return|
|00004ea0| 20 74 68 61 74 20 6f 6e | 65 2c 20 62 75 74 0a 76 | that on|e, but.v|
|00004eb0| 65 72 69 66 79 20 74 68 | 61 74 20 74 68 65 20 66 |erify th|at the f|
|00004ec0| 69 6c 65 20 68 61 73 20 | 6e 6f 74 20 63 68 61 6e |ile has |not chan|
|00004ed0| 67 65 64 20 73 69 6e 63 | 65 20 76 69 73 69 74 65 |ged sinc|e visite|
|00004ee0| 64 20 6f 72 20 73 61 76 | 65 64 2e 0a 54 68 65 20 |d or sav|ed..The |
|00004ef0| 62 75 66 66 65 72 20 69 | 73 20 6e 6f 74 20 73 65 |buffer i|s not se|
|00004f00| 6c 65 63 74 65 64 2c 20 | 6a 75 73 74 20 72 65 74 |lected, |just ret|
|00004f10| 75 72 6e 65 64 20 74 6f | 20 74 68 65 20 63 61 6c |urned to| the cal|
|00004f20| 6c 65 72 2e 22 5d 29 0a | 28 62 79 74 65 2d 63 6f |ler."]).|(byte-co|
|00004f30| 64 65 20 22 c0 c1 21 84 | 08 00 c2 11 c2 87 22 20 |de "..!.|......" |
|00004f40| 5b 62 6f 75 6e 64 70 20 | 61 66 74 65 72 2d 66 69 |[boundp |after-fi|
|00004f50| 6e 64 2d 66 69 6c 65 2d | 66 72 6f 6d 2d 72 65 76 |nd-file-|from-rev|
|00004f60| 65 72 74 2d 62 75 66 66 | 65 72 20 6e 69 6c 5d 20 |ert-buff|er nil] |
|00004f70| 32 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 61 66 |2).(defa|lias 'af|
|00004f80| 74 65 72 2d 66 69 6e 64 | 2d 66 69 6c 65 20 23 5b |ter-find|-file #[|
|00004f90| 28 26 6f 70 74 69 6f 6e | 61 6c 20 65 72 72 6f 72 |(&option|al error|
|00004fa0| 20 77 61 72 6e 20 6e 6f | 61 75 74 6f 20 61 66 74 | warn no|auto aft|
|00004fb0| 65 72 2d 66 69 6e 64 2d | 66 69 6c 65 2d 66 72 6f |er-find-|file-fro|
|00004fc0| 6d 2d 72 65 76 65 72 74 | 2d 62 75 66 66 65 72 29 |m-revert|-buffer)|
|00004fd0| 20 22 c0 09 21 3f 12 0b | 84 99 00 c4 1d 0e 06 83 | "..!?..|........|
|00004fe0| 1c 00 c7 09 21 83 1c 00 | c8 12 c9 82 75 00 5c 6e |....!...|....u.\n|
|00004ff0| 84 3c 00 0e 5c 6e 83 31 | 00 cb cc 20 09 5c 22 83 |.<..\n.1|... .\".|
|00005000| 31 00 cd 82 75 00 c8 15 | 0e 06 85 75 00 ce 82 75 |1...u...|...u...u|
|00005010| 00 0e 06 84 47 00 c8 15 | cf 82 75 00 c7 d0 0e 11 |....G...|..u.....|
|00005020| 21 21 83 54 00 d2 82 75 | 00 d3 d4 09 21 21 83 62 |!!.T...u|....!!.b|
|00005030| 00 c4 89 12 82 75 00 c4 | 12 d3 d4 d0 d4 09 21 21 |.....u..|......!!|
|00005040| 21 21 83 74 00 d5 82 75 | 00 d6 89 1e 17 83 8a 00 |!!.t...u|........|
|00005050| d8 0e 17 21 88 0d 84 8a | 00 d9 da c4 c8 23 88 2a |...!....|.....#.*|
|00005060| 0e 1b 83 99 00 0e 1c 84 | 99 00 dd c8 21 88 de c8 |........|....!...|
|00005070| 21 88 df e0 0e 21 5c 22 | 87 22 20 5b 66 69 6c 65 |!....!\"|." [file|
|00005080| 2d 77 72 69 74 61 62 6c | 65 2d 70 20 62 75 66 66 |-writabl|e-p buff|
|00005090| 65 72 2d 66 69 6c 65 2d | 6e 61 6d 65 20 62 75 66 |er-file-|name buf|
|000050a0| 66 65 72 2d 72 65 61 64 | 2d 6f 6e 6c 79 20 6e 6f |fer-read|-only no|
|000050b0| 6e 69 6e 74 65 72 61 63 | 74 69 76 65 20 6e 69 6c |ninterac|tive nil|
|000050c0| 20 6e 6f 74 2d 73 65 72 | 69 6f 75 73 20 65 72 72 | not-ser|ious err|
|000050d0| 6f 72 20 66 69 6c 65 2d | 61 74 74 72 69 62 75 74 |or file-|attribut|
|000050e0| 65 73 20 74 20 22 46 69 | 6c 65 20 65 78 69 73 74 |es t "Fi|le exist|
|000050f0| 73 2c 20 62 75 74 20 63 | 61 6e 6e 6f 74 20 62 65 |s, but c|annot be|
|00005100| 20 72 65 61 64 2e 22 20 | 77 61 72 6e 20 66 69 6c | read." |warn fil|
|00005110| 65 2d 6e 65 77 65 72 2d | 74 68 61 6e 2d 66 69 6c |e-newer-|than-fil|
|00005120| 65 2d 70 20 6d 61 6b 65 | 2d 61 75 74 6f 2d 73 61 |e-p make|-auto-sa|
|00005130| 76 65 2d 66 69 6c 65 2d | 6e 61 6d 65 20 22 41 75 |ve-file-|name "Au|
|00005140| 74 6f 20 73 61 76 65 20 | 66 69 6c 65 20 69 73 20 |to save |file is |
|00005150| 6e 65 77 65 72 3b 20 63 | 6f 6e 73 69 64 65 72 20 |newer; c|onsider |
|00005160| 4d 2d 78 20 72 65 63 6f | 76 65 72 2d 66 69 6c 65 |M-x reco|ver-file|
|00005170| 22 20 22 28 4e 65 77 20 | 66 69 6c 65 29 22 20 22 |" "(New |file)" "|
|00005180| 4e 6f 74 65 3a 20 66 69 | 6c 65 20 69 73 20 77 72 |Note: fi|le is wr|
|00005190| 69 74 65 20 70 72 6f 74 | 65 63 74 65 64 22 20 64 |ite prot|ected" d|
|000051a0| 69 72 65 63 74 6f 72 79 | 2d 66 69 6c 65 2d 6e 61 |irectory|-file-na|
|000051b0| 6d 65 20 64 65 66 61 75 | 6c 74 2d 64 69 72 65 63 |me defau|lt-direc|
|000051c0| 74 6f 72 79 20 22 46 69 | 6c 65 20 6e 6f 74 20 66 |tory "Fi|le not f|
|000051d0| 6f 75 6e 64 20 61 6e 64 | 20 64 69 72 65 63 74 6f |ound and| directo|
|000051e0| 72 79 20 77 72 69 74 65 | 2d 70 72 6f 74 65 63 74 |ry write|-protect|
|000051f0| 65 64 22 20 66 69 6c 65 | 2d 65 78 69 73 74 73 2d |ed" file|-exists-|
|00005200| 70 20 66 69 6c 65 2d 6e | 61 6d 65 2d 64 69 72 65 |p file-n|ame-dire|
|00005210| 63 74 6f 72 79 20 22 55 | 73 65 20 4d 2d 78 20 6d |ctory "U|se M-x m|
|00005220| 61 6b 65 2d 64 69 72 20 | 52 45 54 20 52 45 54 20 |ake-dir |RET RET |
|00005230| 74 6f 20 63 72 65 61 74 | 65 20 74 68 65 20 64 69 |to creat|e the di|
|00005240| 72 65 63 74 6f 72 79 22 | 20 22 55 73 65 20 43 2d |rectory"| "Use C-|
|00005250| 75 20 4d 2d 78 20 6d 61 | 6b 65 2d 64 69 72 20 52 |u M-x ma|ke-dir R|
|00005260| 45 54 20 52 45 54 20 74 | 6f 20 63 72 65 61 74 65 |ET RET t|o create|
|00005270| 20 64 69 72 65 63 74 6f | 72 79 20 61 6e 64 20 69 | directo|ry and i|
|00005280| 74 73 20 70 61 72 65 6e | 74 73 22 20 6d 73 67 20 |ts paren|ts" msg |
|00005290| 6d 65 73 73 61 67 65 20 | 73 69 74 2d 66 6f 72 20 |message |sit-for |
|000052a0| 31 20 61 75 74 6f 2d 73 | 61 76 65 2d 64 65 66 61 |1 auto-s|ave-defa|
|000052b0| 75 6c 74 20 6e 6f 61 75 | 74 6f 20 61 75 74 6f 2d |ult noau|to auto-|
|000052c0| 73 61 76 65 2d 6d 6f 64 | 65 20 6e 6f 72 6d 61 6c |save-mod|e normal|
|000052d0| 2d 6d 6f 64 65 20 6d 61 | 70 63 61 72 20 66 75 6e |-mode ma|pcar fun|
|000052e0| 63 61 6c 6c 20 66 69 6e | 64 2d 66 69 6c 65 2d 68 |call fin|d-file-h|
|000052f0| 6f 6f 6b 73 5d 20 36 20 | 22 5c 0a 43 61 6c 6c 65 |ooks] 6 |"\.Calle|
|00005300| 64 20 61 66 74 65 72 20 | 66 69 6e 64 69 6e 67 20 |d after |finding |
|00005310| 61 20 66 69 6c 65 20 61 | 6e 64 20 62 79 20 74 68 |a file a|nd by th|
|00005320| 65 20 64 65 66 61 75 6c | 74 20 72 65 76 65 72 74 |e defaul|t revert|
|00005330| 20 66 75 6e 63 74 69 6f | 6e 2e 0a 53 65 74 73 20 | functio|n..Sets |
|00005340| 62 75 66 66 65 72 20 6d | 6f 64 65 2c 20 70 61 72 |buffer m|ode, par|
|00005350| 73 65 73 20 6c 6f 63 61 | 6c 20 76 61 72 69 61 62 |ses loca|l variab|
|00005360| 6c 65 73 2e 0a 4f 70 74 | 69 6f 6e 61 6c 20 61 72 |les..Opt|ional ar|
|00005370| 67 73 20 45 52 52 4f 52 | 2c 20 57 41 52 4e 2c 20 |gs ERROR|, WARN, |
|00005380| 61 6e 64 20 4e 4f 41 55 | 54 4f 3a 20 45 52 52 4f |and NOAU|TO: ERRO|
|00005390| 52 20 6e 6f 6e 2d 6e 69 | 6c 20 6d 65 61 6e 73 20 |R non-ni|l means |
|000053a0| 74 68 65 72 65 20 77 61 | 73 20 61 6e 0a 65 72 72 |there wa|s an.err|
|000053b0| 6f 72 20 69 6e 20 72 65 | 61 64 69 6e 67 20 74 68 |or in re|ading th|
|000053c0| 65 20 66 69 6c 65 2e 20 | 20 57 41 52 4e 20 6e 6f |e file. | WARN no|
|000053d0| 6e 2d 6e 69 6c 20 6d 65 | 61 6e 73 20 77 61 72 6e |n-nil me|ans warn|
|000053e0| 20 69 66 20 74 68 65 72 | 65 0a 65 78 69 73 74 73 | if ther|e.exists|
|000053f0| 20 61 6e 20 61 75 74 6f | 2d 73 61 76 65 20 66 69 | an auto|-save fi|
|00005400| 6c 65 20 6d 6f 72 65 20 | 72 65 63 65 6e 74 20 74 |le more |recent t|
|00005410| 68 61 6e 20 74 68 65 20 | 76 69 73 69 74 65 64 20 |han the |visited |
|00005420| 66 69 6c 65 2e 0a 4e 4f | 41 55 54 4f 20 6d 65 61 |file..NO|AUTO mea|
|00005430| 6e 73 20 64 6f 6e 27 74 | 20 6d 65 73 73 20 77 69 |ns don't| mess wi|
|00005440| 74 68 20 61 75 74 6f 2d | 73 61 76 65 20 6d 6f 64 |th auto-|save mod|
|00005450| 65 2e 0a 46 6f 75 72 74 | 68 20 61 72 67 20 41 46 |e..Fourt|h arg AF|
|00005460| 54 45 52 2d 46 49 4e 44 | 2d 46 49 4c 45 2d 46 52 |TER-FIND|-FILE-FR|
|00005470| 4f 4d 2d 52 45 56 45 52 | 54 2d 42 55 46 46 45 52 |OM-REVER|T-BUFFER|
|00005480| 20 6e 6f 6e 2d 6e 69 6c | 0a 20 6d 65 61 6e 73 20 | non-nil|. means |
|00005490| 74 68 69 73 20 63 61 6c | 6c 20 77 61 73 20 66 72 |this cal|l was fr|
|000054a0| 6f 6d 20 60 72 65 76 65 | 72 74 2d 62 75 66 66 65 |om `reve|rt-buffe|
|000054b0| 72 27 2e 0a 46 69 6e 69 | 73 68 65 73 20 62 79 20 |r'..Fini|shes by |
|000054c0| 63 61 6c 6c 69 6e 67 20 | 74 68 65 20 66 75 6e 63 |calling |the func|
|000054d0| 74 69 6f 6e 73 20 69 6e | 20 60 66 69 6e 64 2d 66 |tions in| `find-f|
|000054e0| 69 6c 65 2d 68 6f 6f 6b | 73 27 2e 22 5d 29 0a 28 |ile-hook|s'."]).(|
|000054f0| 64 65 66 61 6c 69 61 73 | 20 27 6e 6f 72 6d 61 6c |defalias| 'normal|
|00005500| 2d 6d 6f 64 65 20 23 5b | 28 26 6f 70 74 69 6f 6e |-mode #[|(&option|
|00005510| 61 6c 20 66 69 6e 64 2d | 66 69 6c 65 29 20 22 08 |al find-|file) ".|
|00005520| 84 0b 00 09 86 09 00 c2 | 20 88 c3 c4 c5 8f 88 c3 |........| .......|
|00005530| c6 c7 8f 87 22 20 5b 66 | 69 6e 64 2d 66 69 6c 65 |...." [f|ind-file|
|00005540| 20 64 65 66 61 75 6c 74 | 2d 6d 61 6a 6f 72 2d 6d | default|-major-m|
|00005550| 6f 64 65 20 66 75 6e 64 | 61 6d 65 6e 74 61 6c 2d |ode fund|amental-|
|00005560| 6d 6f 64 65 20 65 72 72 | 20 28 73 65 74 2d 61 75 |mode err| (set-au|
|00005570| 74 6f 2d 6d 6f 64 65 29 | 20 28 28 65 72 72 6f 72 |to-mode)| ((error|
|00005580| 20 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 c2 | (byte-c|ode "...|
|00005590| 0b 21 5c 22 87 22 20 5b | 6d 65 73 73 61 67 65 20 |.!\"." [|message |
|000055a0| 22 46 69 6c 65 20 6d 6f | 64 65 20 73 70 65 63 69 |"File mo|de speci|
|000055b0| 66 69 63 61 74 69 6f 6e | 20 65 72 72 6f 72 3a 20 |fication| error: |
|000055c0| 25 73 22 20 70 72 69 6e | 31 2d 74 6f 2d 73 74 72 |%s" prin|1-to-str|
|000055d0| 69 6e 67 20 65 72 72 5d | 20 34 29 29 29 20 28 62 |ing err]| 4))) (b|
|000055e0| 79 74 65 2d 63 6f 64 65 | 20 22 08 3f 86 06 00 09 |yte-code| ".?....|
|000055f0| 19 c2 20 29 87 22 20 5b | 66 69 6e 64 2d 66 69 6c |.. )." [|find-fil|
|00005600| 65 20 65 6e 61 62 6c 65 | 2d 6c 6f 63 61 6c 2d 76 |e enable|-local-v|
|00005610| 61 72 69 61 62 6c 65 73 | 20 68 61 63 6b 2d 6c 6f |ariables| hack-lo|
|00005620| 63 61 6c 2d 76 61 72 69 | 61 62 6c 65 73 5d 20 31 |cal-vari|ables] 1|
|00005630| 29 20 28 28 65 72 72 6f | 72 20 28 62 79 74 65 2d |) ((erro|r (byte-|
|00005640| 63 6f 64 65 20 22 c0 c1 | c2 0b 21 5c 22 87 22 20 |code "..|..!\"." |
|00005650| 5b 6d 65 73 73 61 67 65 | 20 22 46 69 6c 65 20 6c |[message| "File l|
|00005660| 6f 63 61 6c 2d 76 61 72 | 69 61 62 6c 65 73 20 65 |ocal-var|iables e|
|00005670| 72 72 6f 72 3a 20 25 73 | 22 20 70 72 69 6e 31 2d |rror: %s|" prin1-|
|00005680| 74 6f 2d 73 74 72 69 6e | 67 20 65 72 72 5d 20 34 |to-strin|g err] 4|
|00005690| 29 29 29 5d 20 33 20 22 | 5c 0a 43 68 6f 6f 73 65 |)))] 3 "|\.Choose|
|000056a0| 20 74 68 65 20 6d 61 6a | 6f 72 20 6d 6f 64 65 20 | the maj|or mode |
|000056b0| 66 6f 72 20 74 68 69 73 | 20 62 75 66 66 65 72 20 |for this| buffer |
|000056c0| 61 75 74 6f 6d 61 74 69 | 63 61 6c 6c 79 2e 0a 41 |automati|cally..A|
|000056d0| 6c 73 6f 20 73 65 74 73 | 20 75 70 20 61 6e 79 20 |lso sets| up any |
|000056e0| 73 70 65 63 69 66 69 65 | 64 20 6c 6f 63 61 6c 20 |specifie|d local |
|000056f0| 76 61 72 69 61 62 6c 65 | 73 20 6f 66 20 74 68 65 |variable|s of the|
|00005700| 20 66 69 6c 65 2e 0a 55 | 73 65 73 20 74 68 65 20 | file..U|ses the |
|00005710| 76 69 73 69 74 65 64 20 | 66 69 6c 65 20 6e 61 6d |visited |file nam|
|00005720| 65 2c 20 74 68 65 20 2d | 2a 2d 20 6c 69 6e 65 2c |e, the -|*- line,|
|00005730| 20 61 6e 64 20 74 68 65 | 20 6c 6f 63 61 6c 20 76 | and the| local v|
|00005740| 61 72 69 61 62 6c 65 73 | 20 73 70 65 63 2e 0a 0a |ariables| spec...|
|00005750| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 69 73 |This fun|ction is|
|00005760| 20 63 61 6c 6c 65 64 20 | 61 75 74 6f 6d 61 74 69 | called |automati|
|00005770| 63 61 6c 6c 79 20 66 72 | 6f 6d 20 60 66 69 6e 64 |cally fr|om `find|
|00005780| 2d 66 69 6c 65 27 2e 20 | 20 49 6e 20 74 68 61 74 |-file'. | In that|
|00005790| 20 63 61 73 65 2c 0a 77 | 65 20 6d 61 79 20 73 65 | case,.w|e may se|
|000057a0| 74 20 75 70 20 73 70 65 | 63 69 66 69 65 64 20 6c |t up spe|cified l|
|000057b0| 6f 63 61 6c 20 76 61 72 | 69 61 62 6c 65 73 20 64 |ocal var|iables d|
|000057c0| 65 70 65 6e 64 69 6e 67 | 20 6f 6e 20 74 68 65 20 |epending| on the |
|000057d0| 76 61 6c 75 65 20 6f 66 | 0a 60 65 6e 61 62 6c 65 |value of|.`enable|
|000057e0| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 73 |-local-v|ariables|
|000057f0| 27 3a 20 69 66 20 69 74 | 20 69 73 20 74 2c 20 77 |': if it| is t, w|
|00005800| 65 20 64 6f 3b 20 69 66 | 20 69 74 20 69 73 20 6e |e do; if| it is n|
|00005810| 69 6c 2c 20 77 65 20 64 | 6f 6e 27 74 3b 0a 6f 74 |il, we d|on't;.ot|
|00005820| 68 65 72 77 69 73 65 2c | 20 77 65 20 71 75 65 72 |herwise,| we quer|
|00005830| 79 2e 20 20 60 65 6e 61 | 62 6c 65 2d 6c 6f 63 61 |y. `ena|ble-loca|
|00005840| 6c 2d 76 61 72 69 61 62 | 6c 65 73 27 20 69 73 20 |l-variab|les' is |
|00005850| 69 67 6e 6f 72 65 64 20 | 69 66 20 79 6f 75 0a 72 |ignored |if you.r|
|00005860| 75 6e 20 60 6e 6f 72 6d | 61 6c 2d 6d 6f 64 65 27 |un `norm|al-mode'|
|00005870| 20 65 78 70 6c 69 63 69 | 74 6c 79 2e 22 20 6e 69 | explici|tly." ni|
|00005880| 6c 5d 29 0a 28 64 65 66 | 76 61 72 20 61 75 74 6f |l]).(def|var auto|
|00005890| 2d 6d 6f 64 65 2d 61 6c | 69 73 74 20 28 6d 61 70 |-mode-al|ist (map|
|000058a0| 63 61 72 20 28 71 75 6f | 74 65 20 70 75 72 65 63 |car (quo|te purec|
|000058b0| 6f 70 79 29 20 28 71 75 | 6f 74 65 20 28 28 22 5c |opy) (qu|ote (("\|
|000058c0| 5c 2e 74 65 78 74 5c 5c | 27 22 20 2e 20 74 65 78 |\.text\\|'" . tex|
|000058d0| 74 2d 6d 6f 64 65 29 20 | 28 22 5c 5c 2e 63 5c 5c |t-mode) |("\\.c\\|
|000058e0| 27 22 20 2e 20 63 2d 6d | 6f 64 65 29 20 28 22 5c |'" . c-m|ode) ("\|
|000058f0| 5c 2e 68 5c 5c 27 22 20 | 2e 20 63 2d 6d 6f 64 65 |\.h\\'" |. c-mode|
|00005900| 29 20 28 22 5c 5c 2e 74 | 65 78 5c 5c 27 22 20 2e |) ("\\.t|ex\\'" .|
|00005910| 20 54 65 58 2d 6d 6f 64 | 65 29 20 28 22 5c 5c 2e | TeX-mod|e) ("\\.|
|00005920| 6c 74 78 5c 5c 27 22 20 | 2e 20 4c 61 54 65 58 2d |ltx\\'" |. LaTeX-|
|00005930| 6d 6f 64 65 29 20 28 22 | 5c 5c 2e 65 6c 5c 5c 27 |mode) ("|\\.el\\'|
|00005940| 22 20 2e 20 65 6d 61 63 | 73 2d 6c 69 73 70 2d 6d |" . emac|s-lisp-m|
|00005950| 6f 64 65 29 20 28 22 5c | 5c 2e 6d 6d 5c 5c 27 22 |ode) ("\|\.mm\\'"|
|00005960| 20 2e 20 6e 72 6f 66 66 | 2d 6d 6f 64 65 29 20 28 | . nroff|-mode) (|
|00005970| 22 5c 5c 2e 6d 65 5c 5c | 27 22 20 2e 20 6e 72 6f |"\\.me\\|'" . nro|
|00005980| 66 66 2d 6d 6f 64 65 29 | 20 28 22 5c 5c 2e 6d 73 |ff-mode)| ("\\.ms|
|00005990| 5c 5c 27 22 20 2e 20 6e | 72 6f 66 66 2d 6d 6f 64 |\\'" . n|roff-mod|
|000059a0| 65 29 20 28 22 5c 5c 2e | 6d 61 6e 5c 5c 27 22 20 |e) ("\\.|man\\'" |
|000059b0| 2e 20 6e 72 6f 66 66 2d | 6d 6f 64 65 29 20 28 22 |. nroff-|mode) ("|
|000059c0| 5c 5c 2e 73 63 6d 5c 5c | 27 22 20 2e 20 73 63 68 |\\.scm\\|'" . sch|
|000059d0| 65 6d 65 2d 6d 6f 64 65 | 29 20 28 22 5c 5c 2e 6c |eme-mode|) ("\\.l|
|000059e0| 5c 5c 27 22 20 2e 20 6c | 69 73 70 2d 6d 6f 64 65 |\\'" . l|isp-mode|
|000059f0| 29 20 28 22 5c 5c 2e 6c | 69 73 70 5c 5c 27 22 20 |) ("\\.l|isp\\'" |
|00005a00| 2e 20 6c 69 73 70 2d 6d | 6f 64 65 29 20 28 22 5c |. lisp-m|ode) ("\|
|00005a10| 5c 2e 66 5c 5c 27 22 20 | 2e 20 66 6f 72 74 72 61 |\.f\\'" |. fortra|
|00005a20| 6e 2d 6d 6f 64 65 29 20 | 28 22 5c 5c 2e 66 6f 72 |n-mode) |("\\.for|
|00005a30| 5c 5c 27 22 20 2e 20 66 | 6f 72 74 72 61 6e 2d 6d |\\'" . f|ortran-m|
|00005a40| 6f 64 65 29 20 28 22 5c | 5c 2e 70 5c 5c 27 22 20 |ode) ("\|\.p\\'" |
|00005a50| 2e 20 70 61 73 63 61 6c | 2d 6d 6f 64 65 29 20 28 |. pascal|-mode) (|
|00005a60| 22 5c 5c 2e 70 61 73 5c | 5c 27 22 20 2e 20 70 61 |"\\.pas\|\'" . pa|
|00005a70| 73 63 61 6c 2d 6d 6f 64 | 65 29 20 28 22 5c 5c 2e |scal-mod|e) ("\\.|
|00005a80| 6d 73 73 5c 5c 27 22 20 | 2e 20 73 63 72 69 62 65 |mss\\'" |. scribe|
|00005a90| 2d 6d 6f 64 65 29 20 28 | 22 5c 5c 2e 70 6c 5c 5c |-mode) (|"\\.pl\\|
|00005aa0| 27 22 20 2e 20 70 72 6f | 6c 6f 67 2d 6d 6f 64 65 |'" . pro|log-mode|
|00005ab0| 29 20 28 22 5c 5c 2e 63 | 63 5c 5c 27 22 20 2e 20 |) ("\\.c|c\\'" . |
|00005ac0| 63 2b 2b 2d 6d 6f 64 65 | 29 20 28 22 5c 5c 2e 68 |c++-mode|) ("\\.h|
|00005ad0| 68 5c 5c 27 22 20 2e 20 | 63 2b 2b 2d 6d 6f 64 65 |h\\'" . |c++-mode|
|00005ae0| 29 20 28 22 5c 5c 2e 43 | 5c 5c 27 22 20 2e 20 63 |) ("\\.C|\\'" . c|
|00005af0| 2b 2b 2d 6d 6f 64 65 29 | 20 28 22 5c 5c 2e 48 5c |++-mode)| ("\\.H\|
|00005b00| 5c 27 22 20 2e 20 63 2b | 2b 2d 6d 6f 64 65 29 20 |\'" . c+|+-mode) |
|00005b10| 28 22 5c 5c 2e 74 65 78 | 69 6e 66 6f 5c 5c 27 22 |("\\.tex|info\\'"|
|00005b20| 20 2e 20 74 65 78 69 6e | 66 6f 2d 6d 6f 64 65 29 | . texin|fo-mode)|
|00005b30| 20 28 22 5c 5c 2e 74 65 | 78 69 5c 5c 27 22 20 2e | ("\\.te|xi\\'" .|
|00005b40| 20 74 65 78 69 6e 66 6f | 2d 6d 6f 64 65 29 20 28 | texinfo|-mode) (|
|00005b50| 22 5c 5c 2e 73 5c 5c 27 | 22 20 2e 20 61 73 6d 2d |"\\.s\\'|" . asm-|
|00005b60| 6d 6f 64 65 29 20 28 22 | 43 68 61 6e 67 65 4c 6f |mode) ("|ChangeLo|
|00005b70| 67 5c 5c 27 22 20 2e 20 | 63 68 61 6e 67 65 2d 6c |g\\'" . |change-l|
|00005b80| 6f 67 2d 6d 6f 64 65 29 | 20 28 22 63 68 61 6e 67 |og-mode)| ("chang|
|00005b90| 65 2e 6c 6f 67 5c 5c 27 | 22 20 2e 20 63 68 61 6e |e.log\\'|" . chan|
|00005ba0| 67 65 2d 6c 6f 67 2d 6d | 6f 64 65 29 20 28 22 63 |ge-log-m|ode) ("c|
|00005bb0| 68 61 6e 67 65 6c 6f 5c | 5c 27 22 20 2e 20 63 68 |hangelo\|\'" . ch|
|00005bc0| 61 6e 67 65 2d 6c 6f 67 | 2d 6d 6f 64 65 29 20 28 |ange-log|-mode) (|
|00005bd0| 22 43 68 61 6e 67 65 4c | 6f 67 2e 5b 30 2d 39 5d |"ChangeL|og.[0-9]|
|00005be0| 2b 5c 5c 27 22 20 2e 20 | 63 68 61 6e 67 65 2d 6c |+\\'" . |change-l|
|00005bf0| 6f 67 2d 6d 6f 64 65 29 | 20 28 22 5c 5c 24 43 48 |og-mode)| ("\\$CH|
|00005c00| 41 4e 47 45 5f 4c 4f 47 | 5c 5c 24 5c 5c 2e 54 58 |ANGE_LOG|\\$\\.TX|
|00005c10| 54 22 20 2e 20 63 68 61 | 6e 67 65 2d 6c 6f 67 2d |T" . cha|nge-log-|
|00005c20| 6d 6f 64 65 29 20 28 22 | 5c 5c 2e 5b 31 32 33 34 |mode) ("|\\.[1234|
|00005c30| 35 36 37 38 5d 5c 5c 27 | 22 20 2e 20 6e 72 6f 66 |5678]\\'|" . nrof|
|00005c40| 66 2d 6d 6f 64 65 29 20 | 28 22 5c 5c 2e 54 65 58 |f-mode) |("\\.TeX|
|00005c50| 5c 5c 27 22 20 2e 20 54 | 65 58 2d 6d 6f 64 65 29 |\\'" . T|eX-mode)|
|00005c60| 20 28 22 5c 5c 2e 73 74 | 79 5c 5c 27 22 20 2e 20 | ("\\.st|y\\'" . |
|00005c70| 4c 61 54 65 58 2d 6d 6f | 64 65 29 20 28 22 5c 5c |LaTeX-mo|de) ("\\|
|00005c80| 2e 62 62 6c 5c 5c 27 22 | 20 2e 20 4c 61 54 65 58 |.bbl\\'"| . LaTeX|
|00005c90| 2d 6d 6f 64 65 29 20 28 | 22 5c 5c 2e 62 69 62 5c |-mode) (|"\\.bib\|
|00005ca0| 5c 27 22 20 2e 20 62 69 | 62 74 65 78 2d 6d 6f 64 |\'" . bi|btex-mod|
|00005cb0| 65 29 20 28 22 5c 5c 2e | 61 72 74 69 63 6c 65 5c |e) ("\\.|article\|
|00005cc0| 5c 27 22 20 2e 20 74 65 | 78 74 2d 6d 6f 64 65 29 |\'" . te|xt-mode)|
|00005cd0| 20 28 22 5c 5c 2e 6c 65 | 74 74 65 72 5c 5c 27 22 | ("\\.le|tter\\'"|
|00005ce0| 20 2e 20 74 65 78 74 2d | 6d 6f 64 65 29 20 28 22 | . text-|mode) ("|
|00005cf0| 5c 5c 2e 74 63 6c 5c 5c | 27 22 20 2e 20 74 63 6c |\\.tcl\\|'" . tcl|
|00005d00| 2d 6d 6f 64 65 29 20 28 | 22 5c 5c 2e 6c 73 70 5c |-mode) (|"\\.lsp\|
|00005d10| 5c 27 22 20 2e 20 6c 69 | 73 70 2d 6d 6f 64 65 29 |\'" . li|sp-mode)|
|00005d20| 20 28 22 5c 5c 2e 61 77 | 6b 5c 5c 27 22 20 2e 20 | ("\\.aw|k\\'" . |
|00005d30| 61 77 6b 2d 6d 6f 64 65 | 29 20 28 22 5c 5c 2e 70 |awk-mode|) ("\\.p|
|00005d40| 72 6f 6c 6f 67 5c 5c 27 | 22 20 2e 20 70 72 6f 6c |rolog\\'|" . prol|
|00005d50| 6f 67 2d 6d 6f 64 65 29 | 20 28 22 5c 5c 2e 74 61 |og-mode)| ("\\.ta|
|00005d60| 72 5c 5c 27 22 20 2e 20 | 74 61 72 2d 6d 6f 64 65 |r\\'" . |tar-mode|
|00005d70| 29 20 28 22 5e 2f 74 6d | 70 2f 52 65 22 20 2e 20 |) ("^/tm|p/Re" . |
|00005d80| 74 65 78 74 2d 6d 6f 64 | 65 29 20 28 22 2f 4d 65 |text-mod|e) ("/Me|
|00005d90| 73 73 61 67 65 5b 30 2d | 39 5d 2a 5c 5c 27 22 20 |ssage[0-|9]*\\'" |
|00005da0| 2e 20 74 65 78 74 2d 6d | 6f 64 65 29 20 28 22 5e |. text-m|ode) ("^|
|00005db0| 2f 74 6d 70 2f 66 6f 6c | 2f 22 20 2e 20 74 65 78 |/tmp/fol|/" . tex|
|00005dc0| 74 2d 6d 6f 64 65 29 20 | 28 22 5c 5c 2e 79 5c 5c |t-mode) |("\\.y\\|
|00005dd0| 27 22 20 2e 20 63 2d 6d | 6f 64 65 29 20 28 22 5c |'" . c-m|ode) ("\|
|00005de0| 5c 2e 6c 65 78 5c 5c 27 | 22 20 2e 20 63 2d 6d 6f |\.lex\\'|" . c-mo|
|00005df0| 64 65 29 20 28 22 5c 5c | 2e 6f 61 6b 5c 5c 27 22 |de) ("\\|.oak\\'"|
|00005e00| 20 2e 20 73 63 68 65 6d | 65 2d 6d 6f 64 65 29 20 | . schem|e-mode) |
|00005e10| 28 22 5c 5c 2e 73 63 6d | 2e 5b 30 2d 39 5d 2a 5c |("\\.scm|.[0-9]*\|
|00005e20| 5c 27 22 20 2e 20 73 63 | 68 65 6d 65 2d 6d 6f 64 |\'" . sc|heme-mod|
|00005e30| 65 29 20 28 22 5c 5c 2e | 73 67 6d 5c 5c 27 22 20 |e) ("\\.|sgm\\'" |
|00005e40| 2e 20 73 67 6d 6c 2d 6d | 6f 64 65 29 20 28 22 5c |. sgml-m|ode) ("\|
|00005e50| 5c 2e 73 67 6d 6c 5c 5c | 27 22 20 2e 20 73 67 6d |\.sgml\\|'" . sgm|
|00005e60| 6c 2d 6d 6f 64 65 29 20 | 28 22 5c 5c 2e 64 74 64 |l-mode) |("\\.dtd|
|00005e70| 5c 5c 27 22 20 2e 20 73 | 67 6d 6c 2d 6d 6f 64 65 |\\'" . s|gml-mode|
|00005e80| 29 20 28 22 5b 5d 3e 3a | 2f 5d 5c 5c 2e 2e 2a 65 |) ("[]>:|/]\\..*e|
|00005e90| 6d 61 63 73 5c 5c 27 22 | 20 2e 20 65 6d 61 63 73 |macs\\'"| . emacs|
|00005ea0| 2d 6c 69 73 70 2d 6d 6f | 64 65 29 20 28 22 5b 3a |-lisp-mo|de) ("[:|
|00005eb0| 2f 5d 5f 65 6d 61 63 73 | 5c 5c 27 22 20 2e 20 65 |/]_emacs|\\'" . e|
|00005ec0| 6d 61 63 73 2d 6c 69 73 | 70 2d 6d 6f 64 65 29 20 |macs-lis|p-mode) |
|00005ed0| 28 22 5c 5c 2e 6d 6c 5c | 5c 27 22 20 2e 20 6c 69 |("\\.ml\|\'" . li|
|00005ee0| 73 70 2d 6d 6f 64 65 29 | 29 29 29 20 22 5c 0a 41 |sp-mode)|))) "\.A|
|00005ef0| 6c 69 73 74 20 6f 66 20 | 66 69 6c 65 6e 61 6d 65 |list of |filename|
|00005f00| 20 70 61 74 74 65 72 6e | 73 20 76 73 20 63 6f 72 | pattern|s vs cor|
|00005f10| 72 65 73 70 6f 6e 64 69 | 6e 67 20 6d 61 6a 6f 72 |respondi|ng major|
|00005f20| 20 6d 6f 64 65 20 66 75 | 6e 63 74 69 6f 6e 73 2e | mode fu|nctions.|
|00005f30| 0a 45 61 63 68 20 65 6c | 65 6d 65 6e 74 20 6c 6f |.Each el|ement lo|
|00005f40| 6f 6b 73 20 6c 69 6b 65 | 20 28 52 45 47 45 58 50 |oks like| (REGEXP|
|00005f50| 20 2e 20 46 55 4e 43 54 | 49 4f 4e 29 20 6f 72 20 | . FUNCT|ION) or |
|00005f60| 28 52 45 47 45 58 50 20 | 46 55 4e 43 54 49 4f 4e |(REGEXP |FUNCTION|
|00005f70| 29 2e 0a 56 69 73 69 74 | 69 6e 67 20 61 20 66 69 |)..Visit|ing a fi|
|00005f80| 6c 65 20 77 68 6f 73 65 | 20 6e 61 6d 65 20 6d 61 |le whose| name ma|
|00005f90| 74 63 68 65 73 20 52 45 | 47 45 58 50 20 63 61 75 |tches RE|GEXP cau|
|00005fa0| 73 65 73 20 46 55 4e 43 | 54 49 4f 4e 20 74 6f 20 |ses FUNC|TION to |
|00005fb0| 62 65 20 63 61 6c 6c 65 | 64 2e 0a 49 66 20 74 68 |be calle|d..If th|
|00005fc0| 65 20 65 6c 65 6d 65 6e | 74 20 68 61 73 20 74 68 |e elemen|t has th|
|00005fd0| 65 20 66 6f 72 6d 20 28 | 52 45 47 45 58 50 20 46 |e form (|REGEXP F|
|00005fe0| 55 4e 43 54 49 4f 4e 29 | 2c 20 74 68 65 6e 20 61 |UNCTION)|, then a|
|00005ff0| 66 74 65 72 20 63 61 6c | 6c 69 6e 67 0a 46 55 4e |fter cal|ling.FUN|
|00006000| 43 54 49 4f 4e 2c 20 77 | 65 20 64 65 6c 65 74 65 |CTION, w|e delete|
|00006010| 20 74 68 65 20 73 75 66 | 66 69 78 20 74 68 61 74 | the suf|fix that|
|00006020| 20 6d 61 74 63 68 65 64 | 20 52 45 47 45 58 50 20 | matched| REGEXP |
|00006030| 61 6e 64 20 73 65 61 72 | 63 68 20 74 68 65 20 6c |and sear|ch the l|
|00006040| 69 73 74 0a 61 67 61 69 | 6e 20 66 6f 72 20 61 6e |ist.agai|n for an|
|00006050| 6f 74 68 65 72 20 6d 61 | 74 63 68 2e 22 29 0a 28 |other ma|tch.").(|
|00006060| 64 65 66 63 6f 6e 73 74 | 20 69 6e 74 65 72 70 72 |defconst| interpr|
|00006070| 65 74 65 72 2d 6d 6f 64 | 65 2d 61 6c 69 73 74 20 |eter-mod|e-alist |
|00006080| 28 71 75 6f 74 65 20 28 | 28 22 70 65 72 6c 22 20 |(quote (|("perl" |
|00006090| 2e 20 70 65 72 6c 2d 6d | 6f 64 65 29 20 28 22 77 |. perl-m|ode) ("w|
|000060a0| 69 73 68 22 20 2e 20 74 | 63 6c 2d 6d 6f 64 65 29 |ish" . t|cl-mode)|
|000060b0| 20 28 22 77 69 73 68 78 | 22 20 2e 20 74 63 6c 2d | ("wishx|" . tcl-|
|000060c0| 6d 6f 64 65 29 20 28 22 | 74 63 6c 22 20 2e 20 74 |mode) ("|tcl" . t|
|000060d0| 63 6c 2d 6d 6f 64 65 29 | 20 28 22 74 63 6c 73 68 |cl-mode)| ("tclsh|
|000060e0| 22 20 2e 20 74 63 6c 2d | 6d 6f 64 65 29 20 28 22 |" . tcl-|mode) ("|
|000060f0| 61 77 6b 22 20 2e 20 61 | 77 6b 2d 6d 6f 64 65 29 |awk" . a|wk-mode)|
|00006100| 20 28 22 67 61 77 6b 22 | 20 2e 20 61 77 6b 2d 6d | ("gawk"| . awk-m|
|00006110| 6f 64 65 29 20 28 22 73 | 63 6d 22 20 2e 20 73 63 |ode) ("s|cm" . sc|
|00006120| 68 65 6d 65 2d 6d 6f 64 | 65 29 29 29 20 22 5c 0a |heme-mod|e))) "\.|
|00006130| 41 6c 69 73 74 20 6d 61 | 70 70 69 6e 67 20 69 6e |Alist ma|pping in|
|00006140| 74 65 72 70 72 65 74 65 | 72 20 6e 61 6d 65 73 20 |terprete|r names |
|00006150| 74 6f 20 6d 61 6a 6f 72 | 20 6d 6f 64 65 73 2e 0a |to major| modes..|
|00006160| 54 68 69 73 20 61 6c 69 | 73 74 20 61 70 70 6c 69 |This ali|st appli|
|00006170| 65 73 20 74 6f 20 66 69 | 6c 65 73 20 77 68 6f 73 |es to fi|les whos|
|00006180| 65 20 66 69 72 73 74 20 | 6c 69 6e 65 20 73 74 61 |e first |line sta|
|00006190| 72 74 73 20 77 69 74 68 | 20 60 23 21 27 2e 0a 45 |rts with| `#!'..E|
|000061a0| 61 63 68 20 65 6c 65 6d | 65 6e 74 20 6c 6f 6f 6b |ach elem|ent look|
|000061b0| 73 20 6c 69 6b 65 20 28 | 49 4e 54 45 52 50 52 45 |s like (|INTERPRE|
|000061c0| 54 45 52 20 2e 20 4d 4f | 44 45 29 2e 0a 54 68 65 |TER . MO|DE)..The|
|000061d0| 20 63 61 72 20 6f 66 20 | 65 61 63 68 20 65 6c 65 | car of |each ele|
|000061e0| 6d 65 6e 74 20 69 73 20 | 63 6f 6d 70 61 72 65 64 |ment is |compared|
|000061f0| 20 77 69 74 68 0a 74 68 | 65 20 6e 61 6d 65 20 6f | with.th|e name o|
|00006200| 66 20 74 68 65 20 69 6e | 74 65 72 70 72 65 74 65 |f the in|terprete|
|00006210| 72 20 73 70 65 63 69 66 | 69 65 64 20 69 6e 20 74 |r specif|ied in t|
|00006220| 68 65 20 66 69 72 73 74 | 20 6c 69 6e 65 2e 0a 49 |he first| line..I|
|00006230| 66 20 69 74 20 6d 61 74 | 63 68 65 73 2c 20 6d 6f |f it mat|ches, mo|
|00006240| 64 65 20 4d 4f 44 45 20 | 69 73 20 73 65 6c 65 63 |de MODE |is selec|
|00006250| 74 65 64 2e 22 29 0a 28 | 64 65 66 63 6f 6e 73 74 |ted.").(|defconst|
|00006260| 20 69 6e 68 69 62 69 74 | 2d 66 69 72 73 74 2d 6c | inhibit|-first-l|
|00006270| 69 6e 65 2d 6d 6f 64 65 | 73 2d 72 65 67 65 78 70 |ine-mode|s-regexp|
|00006280| 73 20 28 71 75 6f 74 65 | 20 28 22 5c 5c 2e 74 61 |s (quote| ("\\.ta|
|00006290| 72 24 22 29 29 20 22 5c | 0a 4c 69 73 74 20 6f 66 |r$")) "\|.List of|
|000062a0| 20 72 65 67 65 78 70 73 | 3b 20 69 66 20 6f 6e 65 | regexps|; if one|
|000062b0| 20 6d 61 74 63 68 65 73 | 20 61 20 66 69 6c 65 20 | matches| a file |
|000062c0| 6e 61 6d 65 2c 20 64 6f | 6e 27 74 20 6c 6f 6f 6b |name, do|n't look|
|000062d0| 20 66 6f 72 20 60 2d 2a | 2d 27 2e 22 29 0a 28 64 | for `-*|-'.").(d|
|000062e0| 65 66 76 61 72 20 75 73 | 65 72 2d 69 6e 69 74 2d |efvar us|er-init-|
|000062f0| 66 69 6c 65 20 22 22 20 | 22 5c 0a 46 69 6c 65 20 |file "" |"\.File |
|00006300| 6e 61 6d 65 20 69 6e 63 | 6c 75 64 69 6e 67 20 64 |name inc|luding d|
|00006310| 69 72 65 63 74 6f 72 79 | 20 6f 66 20 75 73 65 72 |irectory| of user|
|00006320| 27 73 20 69 6e 69 74 69 | 61 6c 69 7a 61 74 69 6f |'s initi|alizatio|
|00006330| 6e 20 66 69 6c 65 2e 22 | 29 0a 28 64 65 66 61 6c |n file."|).(defal|
|00006340| 69 61 73 20 27 73 65 74 | 2d 61 75 74 6f 2d 6d 6f |ias 'set|-auto-mo|
|00006350| 64 65 20 23 5b 6e 69 6c | 20 22 c0 89 89 19 1a 1b |de #[nil| "......|
|00006360| 8a 65 62 88 c4 c0 77 88 | 0d 83 af 00 0e 06 89 1e |.eb...w.|........|
|00006370| 07 83 2d 00 c8 0e 07 40 | 0e 09 5c 22 84 2d 00 0e |..-....@|..\".-..|
|00006380| 07 41 89 16 07 84 1a 00 | 0e 07 29 84 af 00 ca cb |.A......|..).....|
|00006390| 8a cc cd 21 85 3d 00 ce | 7f 88 60 29 cf 23 83 af |...!.=..|..`).#..|
|000063a0| 00 d0 c0 77 88 60 13 ca | cb 8a c0 7f 88 60 29 cf |...w.`..|.....`).|
|000063b0| 23 83 af 00 d1 75 88 d0 | c0 78 88 60 12 0b 62 88 |#....u..|.x.`..b.|
|000063c0| 8a ca d2 5c 6e cf 23 29 | 83 a3 00 cf 1e 13 ca d4 |...\n.#)|........|
|000063d0| 5c 6e cf 23 29 83 ad 00 | d0 c0 77 88 60 13 ca d5 |\n.#)...|..w.`...|
|000063e0| 5c 6e cf 23 83 8f 00 d6 | 75 88 82 92 00 5c 6e 62 |\n.#....|u....\nb|
|000063f0| 88 d0 c0 78 88 d7 0b 60 | 7b 97 d8 50 21 20 88 82 |...x...`|{..P! ..|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.